GIT_SUBMODULE_STRATEGY用于在构建之前控制git子模块用,像GIT_STRATEGY一样,他可以在全局variables里设置,也能在jobs下的variables设置 有三个可选值 none,normal,recursive none默认不引入子模块,和,Runner1.10以前的默认行为一样,也是默认值 normal默认只引入第一级子模块,跟下面相等 git sub
在Gitlab jobs 使用 submodules,官网提供的方式:Use Git submodules in CI/CD jobs,大概就是说: 确保子项目 和 主项目 在 同一个 gitlab server 上; 在.gitlab-ci.yml文件 配置GIT_SUBMODULE_STRATEGY:normal 或 recursive: variables: GIT_SUBMODULE_STRATEGY: recursive 1. 2. 配置GIT_SUBMODULE_STRATEGY:...
There are a few steps you need to take in order to make submodules work correctly with your CI jobs: First, make sure you have usedrelative URLsfor the submodules located in the same GitLab server. Next, if you are usinggitlab-ci-multi-runnerv1.10+, you can set theGIT_SUBMODULE_STR...
Next, if you are usinggitlab-runnerv1.10+, you can set theGIT_SUBMODULE_STRATEGYvariable to eithernormalorrecursiveto tell the runner to fetch your submodules before the job: variables:GIT_SUBMODULE_STRATEGY:recursive See the.gitlab-ci.ymlreferencefor more details aboutGIT_SUBMODULE_STRATEGY. ...
Next, if you are usinggitlab-runnerv1.10+, you can set theGIT_SUBMODULE_STRATEGYvariable to eithernormalorrecursiveto tell the runner to fetch your submodules before the job: variables:GIT_SUBMODULE_STRATEGY:recursive See the.gitlab-ci.ymlreferencefor more details aboutGIT_SUBMODULE_STRATEGY. ...
See the.gitlab-ci.ymlreferencefor more details aboutGIT_SUBMODULE_STRATEGY. If you are using an older version ofgitlab-ci-multi-runner, then usegit submodule sync/updateinbefore_script: before_script:-git submodule sync --recursive-git submodule update --init --recursive ...
See the.gitlab-ci.ymlreferencefor more details aboutGIT_SUBMODULE_STRATEGY. If you are using an older version ofgitlab-ci-multi-runner, then usegit submodule sync/updateinbefore_script: before_script:-git submodule sync --recursive-git submodule update --init --recursive ...
默认的 GitLab 的 Runner 在构建时不会去拉取 Git Submodules 仓库,将会提示 Skipping Git submodules setup 跳过初始化 Git Submodule 仓库
GIT_SUBMODULE_STRATEGY: recursive # 拉取 Submodule 内容 1. 2. 3. 4. 5. 6. 7. 8. 设置之后可以在 GitLab 的 Runner 构建时看到如下输出 Updating/initializing submodules recursively 1. 也就是说将会自动拉取 submodules 内容 如果在博客看到有任何不懂的,欢迎交流,我搭建了 dotnet 职业技术学...
Currently, theGIT_SUBMODULE_STRATEGY(seethe docs) supports normal and recursive checkouts of submodules. Git additionally supports the--remoteflag, which fetches the latest version of the submodule, and not the one tagged in the repository. We have the following use case: Several projects on Gi...