1- 环境:
- Gitlab-CE
- GitLab 13.2.1 (b55baf593e6)
- GitLab Shell 13.3.0
- GitLab Workhorse v8.37.0
- GitLab API v4
- Ruby 2.6.6p146
- Rails 6.0.3.1
- PostgreSQL 11.7
- Debian GNU / Linux 10 服务器 (buster)
2- .gitlab-ci.yml 文件:
before_script:
- echo "--------- STARTING WORK ------------"
job_homologacao:
only:
- homologation
script:
- cd /home/ati/
- mkdir test
- echo "got here"
job_producao:
only:
- master
script:
- cd /home/ati/test/
- echo "got here"
3- 当执行 runner 时出现错误: 使用 gitlab-runner 13.2.1 (efa30e33) 在带有 Akx_BvYF shell 的运行器上运行 准备 "shell" 执行程序 使用 Shell 执行器... 准备环境 在 hermes 上运行... 错误:作业失败(系统故障):准备环境:退出状态 1。请查看https://docs.gitlab.com/runner/shells/index.html#shell-profile-loading了解更多信息。
4- 更正尝试: 我阅读并执行了文档中包含的所有过程: