- 运行错误
最近在研究Gitlab CI/CD相关的专业知识,在一台已经配置好Gitlab Runner的机子上跑 pipline,却出现了下面的问题。
Running with gitlab-runner 15.11.0 (436955cb)
on yczx-2288H-V6 PqsbWBss, system ID: s_906fc8140927
Preparing the "shell" executor
Using Shell (bash) executor...
Preparing environment
Running on yczx-2288H-V6...
ERROR: Job failed: prepare environment: exit status 1. Check https://docs.gitlab.com/runner/shells/index.html#shell-profile-loading for more information
- 解决方案
在经历了一些搜索之后,找到了解决方案。方案来自:https://gitlab.com/gitlab-org/gitlab-runner/-/issues/26605
cd /home/gitlab-runner/
sudo rm -rf *