在Jenkins构建中不更新的git子模块 [英] git submodules not updating in Jenkins build
问题描述
看起来我找到了一个解决方案:
build步骤来执行下面的shell命令:
$ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ git submodule foreach git checkout master $ b $ git submodule foreach git pull
I have a submodule in a project in jenkins. I've enabled the advanced setting to recursively update submodules. When I run the build, I see that the workspace has the files from the submodule. The problem is, it seems to be the first revision of the submodule. When I push changes (repo hosted on github) jenkins doesn't seem to update the submodule to get the right changes. Has anyone ever seen this?
Looks like I found a solution:
I added a build step to execute the following shell commands:
git submodule foreach git checkout master
git submodule foreach git pull
这篇关于在Jenkins构建中不更新的git子模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!