Jenkins和更新git子模块 [英] Jenkins and updating git submodules

查看:884
本文介绍了Jenkins和更新git子模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Jenkins的高级子模块行为",并选中了递归更新子模块"选项.但是我只能在旧版本中获得子模块.我希望始终拥有子模块的总修订版.我在高级子模块行为"中找到了另一个选项,称为将跟踪子模块更新到分支的尖端".这似乎使用--remote选项.这样可以解决问题吗?

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?

有什么想法吗?

推荐答案

基于文档页面对于子模块,似乎应该可以使用.您需要使用git 1.8.2或更高版本.

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

这篇关于Jenkins和更新git子模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆