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?

  • Why won't SourceTree for Mac OS let me branch the same way twice?
  • Resolve conflicts using remote changes when pulling from Git remote
  • I lost my uncommited changes after I made a merge
  • Can't locate git-cvsimport?
  • git pre-commit + mysqldump: cannot find path, not existing command
  • If you write a file to the index in a merge that was conflicted, how do you go back to the conflicted state?
  • git diff two files on same branch, same commit
  • Git Commit message structure
  • How to get git to show commits in a specified date range for author date?
  • Git enter long passphrase for every push
  • .gitignore file got cached
  • How can I “force” a git rebase?
  • 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.