Git submodules not updating in Jenkins build

Note that the Jenkins Git plugin 2.0 will have “advance submodule behaviors”, which should ensure proper updates of the submodules:

git 2.0

As commented by vikramvi:

Advanced sub-modules behavior > “Path of the reference repo to use during submodule update” against this field , add submodule git url.

Path


Owen B mentions in the comments:

For the authentication issue, there’s now a “Use credentials from default remote of parent repository” option

Seen here in JENKINS-20941:

https://issues.jenkins-ci.org/secure/attachment/33245/Screen%20Shot%202016-07-08%20at%2010.09.17.png

Leave a Comment