简体   繁体   中英

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM