1-环境:
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"
Run Code Online (Sandbox Code Playgroud)
3- 执行 运行程序时出现错误:在运行程序上使用 gitlab-runner 13.2.1 (efa30e33) 运行,使用 Akx_BvYF shell 准备“shell”执行器使用 Shell 执行程序...准备环境在 Hermes 上运行...错误:作业失败(系统故障):准备环境:退出状态 1. 检查https://docs.gitlab.com/runner/shells/index.html#shell-profile-loading了解更多信息 …