首页 新闻 会员 周边

gitlab ci runner 不更新 submodule 的问题

0
悬赏园豆:30 [已解决问题] 解决于 2020-03-28 17:15

参考 gitlab 帮助文档 Using Git submodules in your CI jobs ,无论是使用

variables:
  GIT_SUBMODULE_STRATEGY: recursive

还是使用

before_script:
  - git submodule sync --recursive
  - git submodule update --init --recursive

当 submodule push 了 commit 后,gitlab-runner 怎么也不更新 submodule ,请问如何解决?

dudu的主页 dudu | 高人七级 | 园豆:30994
提问于:2020-03-28 16:26
< >
分享
最佳答案
0

gitlab CI not checking out latest submodule's commit 的一个评论

I didn't have any problems just keeping GIT_SUBMODULES_STRATEGY set to "normal" and then using the git submodule update --remote in my before_script.

找到了解决方法:

variables:
    GIT_SUBMODULE_STRATEGY: normal 
  before_script:
    - git submodule update --remote
dudu | 高人七级 |园豆:30994 | 2020-03-28 17:15
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册