问题
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