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...
Git Submodule Strategy Requires GitLab Runner v1.10+ GIT_SUBMODULE_STRATEGY用于在构建之前控制git子模块用,像GIT_STRATEGY一样,他可以在全局variables里设置,也能在jobs下的variables设置 有三个可选值 none,normal,recursive none默认不引入子模块,和,Runner1.10以前的默认行为一样,也是默认值 normal默认只引入第一...
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...
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...
可以看出设置GIT_STRATEGY: "none"可能会遇到意想不到的情况! 为了加快流水线工程的执行,建议使用fetch模式。 流水线的Git策略默认是git fetch模式。 流水线的默认Git策略,可以在项目的流水线通用设置中查看:子模块策略Git submodule strategy GIT_SUBMODULE_STRATEGY GIT_SUBMODULE_STRATEGY类似于GIT_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. ...
默认的 GitLab 的 Runner 在构建时不会去拉取 Git Submodules 仓库,将会提示 Skipping Git submodules setup 跳过初始化 Git Submodule 仓库
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 ...
可以看出设置 GIT_STRATEGY: "none" 可能会遇到意想不到的情况! 为了加快流水线工程的执行,建议使用 fetch 模式。 流水线的Git策略默认是 git fetch 模式。 流水线的默认Git策略,可以在项目的流水线通用设置中查看: 子模块策略Git submodule strategy GIT_SUBMODULE_STRATEGY GIT_SUBMODULE_STRATEGY 类似于 GIT_STRAT...