git plugin and hudson

↘锁芯ラ 提交于 2019-12-11 12:24:01

问题


I using Hudson as my continuous integrations tool. Now when pulling down sources from multiple git repositories. I am getting errors in my workspace only pulling down the last repository in the list and the build fails.

I understand that when pull down from multiple git repositories multiple hidden .git directories are created in my workspace. The git plugin doesn't specify a way from me to pull each repository into its own directory within the workspace. How do I achieve this? I am using the latest git plugin tool

Please and thank you.


回答1:


I would rather use the Hudson Git plugin the way it naturally runs: pulling only one Git repo.

Except that Git repo could be a parent repo for submodules, each submodule being of the Git repos you wanted to import into the Hudson jib workspace in the first place.

That is not an "easy" solution though, since a Git parent repo only references "fixed" point in the Git submodules history.
That means if you want the Git plugin to detect any changes, the submodules need to have new commit (normal) but the parent repo should also be committed to register the new Git submodules references.



来源:https://stackoverflow.com/questions/3578088/git-plugin-and-hudson

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!