首页 > 解决方案 > Jenkins 多分支管道如何自动初始化和更新 repo 的子模块

问题描述

基本上需要相当于

混帐克隆。git 子模块更新 --init --remote

标签: jenkinsmultibranch-pipeline

解决方案


When you configure your Multibranch Pipeline Job you have an option to add Behaviors, one of the behaviors is Advanced sub-modules behaviours, there you can configure exactly what you want to do with submodules.
You will probably want to check the Recursively update submodules option to achieve what you want: enter image description here


推荐阅读