默认的 GitLab 的 Runner 在构建时不会去拉取GitSubmodules 仓库,将会提示 Skipping Git submodules setup 跳过初始化 Git Submodule 仓库 如官方文档的描述,只需要加上以下代码在.gitlab-ci.yml文件即可 代码语言:javascript 代码运行次数:0 运行 AI代码解释 ...
name: gitlab-runner-cm data: REGISTRATION_TOKEN:"gitlab-CICD-Runner中获取到的token"REGISTER_NON_INTERACTIVE:"true"REGISTER_LOCKED:"false"CI_SERVER_URL:"gitlab-CICD-Runner中获取到的Url"METRICS_SERVER:"0.0.0.0:9100"RUNNER_CONCURRENT_BUILDS:"4"RUNNER_REQUEST_CONCURRENCY:"4"RUNNER_TAG_LIST:"prom...
git-lfs/2.13.3 (GitHub; windows amd64; go 1.16.2; git a5e65851) Skipping Git submodules setup Executing "step_script" stage of the job script 00:01 $ pwd Path --- C:\gitlab-runner-windows-amd64\builds\xhyz8oiW\0\g1\p1 $ get-host Name : ConsoleHost Version : 5.1.19041.1320 ...
默认的 GitLab 的 Runner 在构建时不会去拉取 Git Submodules 仓库,将会提示 Skipping Git submodules setup 跳过初始化 Git Submodule 仓库 如官方文档 的描述,只需要加上以下代码在 .gitlab-ci.yml 文件即可 variables: GIT_SUBMODULE_STRATEGY: recursive # 拉取 Submodule ...
gitlab-runner register 输入此命令后会提示一下操纵 输入你的gitlaburl 1. 2. 3. 4. lease enter the gitlab-ci coordinator URL (e.g. https://gitlab.com ) 1. Please enter the gitlab-ci token for this runner 1. Please enter the gitlab-ci description for this runner ...
原因: 从一个分支(此分支没有报错的子模块)切换到另一个分支(有报错子模块的) 然后直接提交父项目,gitlab runner 执行的时候就会找不到该子项目, 就需要运行一下 git submodule sync && git submodule update --init --recursive 这个命令把子项目同步到主项目,然后再提交即可。
--recursiveshould be used in either both or none (sync/update) depending on whether you have recursive submodules. The rationale to set thesyncandupdateinbefore_scriptis because of the way Git submodules work. On a fresh Runner workspace, Git will set the submodule URL including the token in...
Introduced in GitLab Runner 15.11.For example, your generated .gitmodules configuration might look like the following if:Your project is located at https://gitlab.com/secret-group/my-project. Your project depends on https://gitlab.com/group/project, which you want to include as a submodule....
variables:GIT_SUBMODULE_STRATEGY:recursive See the.gitlab-ci.ymlreferencefor more details aboutGIT_SUBMODULE_STRATEGY. If you are using an older version ofgitlab-runner, then usegit submodule sync/updateinbefore_script: before_script:-git submodule sync --recursive-git submodule update --init --...
--recursiveshould be used in either both or none (sync/update) depending on whether you have recursive submodules. The rationale to set thesyncandupdateinbefore_scriptis because of the way Git submodules work. On a fresh Runner workspace, Git will set the submodule URL including the token in...