Jenkins and updating git submodules

I am using Jenkins “Advanced sub-modules behaviour” and checked the “Recursively update sub modules” option. However I get the submodule only in an old revision. I would like to always have the head revision of the submodule. I found another option in “Advanced sub-modules behaviour” called “Update tracking submodules to tip of branch”. This seems to use the –remote option. Will this solve the Problem?

Any Ideas?

  • Git: can't undo local changes (error: path … is unmerged)
  • git svn clone not checking out all directories
  • Can't resolve rebase conflict
  • Embed Git revision in executable during remote build with NetBeans
  • Why can I not switch branches?
  • Synchronizing Git repos across machines without push
  • Gerrit email notification for push to master branch
  • Is there a way to run unit test for a WebGL webapp in a headless browser
  • What exactly does the “u” do? “git push -u origin master” vs “git push origin master”
  • Better control of git log formatting
  • Git pull - error: The following untracked working tree files would be overwritten by merge:
  • How to checkout ssh remote in github organization Jenkins workflow and use ssh credentials in Jenkinsfile
  • One Solution collect form web for “Jenkins and updating git submodules”

    Based on the documentation page for submodule, it seems that that should work. You need to have git 1.8.2 or newer though.

    Git Baby is a git and github fan, let's start git clone.