Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 863
clausmc Avatar asked Oct 18 '22 12:10

clausmc


1 Answers

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

like image 59
Serban Constantin Avatar answered Oct 21 '22 06:10

Serban Constantin