8-11|Running with gitlab-runner 16.2.1 (674e0e29) on csjs2-sg-cdn-web Ku48KQnJ, system ID: s_daf35

简介: 8-11|Running with gitlab-runner 16.2.1 (674e0e29) on csjs2-sg-cdn-web Ku48KQnJ, system ID: s_daf35

这个错误信息表示 GitLab Runner 在尝试执行 CI/CD 作业时遇到了问题。具体来说,这是你在作业的环境变量或 GitLab Runner 的配置中设置了 `GIT_CLONE_PATH`,但没有启用 `custom_build_dir` 特性。

解释:

- **`GIT_CLONE_PATH`**: 这是一个环境变量,用于指定 GitLab Runner 克隆代码的目录。

 

- **`custom_build_dir`**: 这是一个 GitLab Runner 的特性,当启用时,它允许你自定义构建目录。

错误建议你启用 `custom_build_dir` 特性,以便使用 `GIT_CLONE_PATH`。

为了解决这个问题,你可以采取以下步骤:

1. **启用 `custom_build_dir`**:

 在 GitLab Runner 的配置文件(通常是 `/etc/gitlab-runner/config.toml`)中,找到你的 Runner 配置(在 `[[runners]]` 下面)并添加以下内容:

 ```toml

 [runners.custom_build_dir]

 enabled = true

 ```

 然后保存文件并重新启动 GitLab Runner。

2. **检查 `.gitlab-ci.yml`**:

 确保在你的 `.gitlab-ci.yml` 文件或 GitLab Runner 的配置中正确设置了 `GIT_CLONE_PATH`。它应该指向一个合适的目录,该目录由 Runner 用户拥有,并且可以写入。

3. **重新启动 Runner**:

 在更改配置文件后,确保重新启动 GitLab Runner:

 ```bash

 sudo gitlab-runner restart

 ```

完成上述步骤后,再次尝试运行你的 CI/CD 作业,错误应该已经解决。


目录
打赏
0
0
0
0
100
分享
相关文章
使用 GitLab CI/CD 管道自动化部署 Web 应用
【10月更文挑战第2天】使用 GitLab CI/CD 管道自动化部署 Web 应用
371 0
|
10月前
|
Web安全-会话ID漏洞
Web安全-会话ID漏洞
134 3
shell+crontab+gitlab实现ecs服务器文件的web展示
本文通过把ecs服务器上的文件定时上传至gitlab,实现文件的页面可视化和修改历史。技术点:shell、crontab、gitlab。
138 3
There is no configured/running web-servers found Please, run any web-configuration and hit the
There is no configured/running web-servers found Please, run any web-configuration and hit the
204 0
Web前端学习:jQuery基础--1【简介和安装、语法使用、三种选选择器的使用(元素、class、id)】(附操作源码)
Web前端学习:jQuery基础--1【简介和安装、语法使用、三种选选择器的使用(元素、class、id)】(附操作源码)
326 0
Web前端学习:jQuery基础--1【简介和安装、语法使用、三种选选择器的使用(元素、class、id)】(附操作源码)
成功解决Not possible to connect to the Web3 provider. Make sure the provider is running and a connection
成功解决Not possible to connect to the Web3 provider. Make sure the provider is running and a connection
GitLab 如何在 Web 界面中 Merge branch
希望在 GitLab 中对 2 个 branch 进行合并,如何创建 Pull Request 并且如何进行合并呢? 在 GitLib 的 Web 界面中选择 Merge Requests 然后再界面中选择新建一个 Merge Request。
1129 0
jenkins 设置 gitlab web hooks
背景 接口自动化期望代码push后触发实现持续集成,代码push后,自动化执行jenkins的job。   步骤 准备工作 工具:jenkins,gitlab jenkins需要安装插件:git plugin,gitlab hook plugin , gitlab plugin(有的插件...
1724 0
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等