小编Slu*_*ugQ的帖子

Gitlab CI/CD 在“清理项目目录和基于文件的变量”时失败,并显示“错误:作业失败:退出代码 1”

我的 gitlab 管道已经运行了近六个月,现在意外失败。

之前的每一行都成功运行,然后会发生这种情况:

Setting up curl (7.52.1-5+deb9u16) ...
$ curl -s https://deb.nodesource.com/setup_12.x | bash
Cleaning up project directory and file based variables 
ERROR: Job failed: exit code 1
Run Code Online (Sandbox Code Playgroud)

我一生都无法弄清楚到底发生了什么变化。我认为这可能与此问题有关,但我没有遇到任何网络问题、超时等问题。

我的 .gitlab-ci.yml 的轻度混淆版本。显然,我正在使用 .gitlab-ci.yml 来配置我的管道,并且我还使用共享的 GitLab 运行程序。


image: python:3.6-stretch

variables:
    ACCESS_KEY_ID: **********
    SECRET_ACCESS_KEY: **********

before_script:
  - apt-get update
  - apt-get install -y curl
  - curl -s https://deb.nodesource.com/setup_12.x | bash
  - apt-get install -y nodejs
  - apt-get install -y npm
  - npm install -g serverless
  - pip install  --upgrade …
Run Code Online (Sandbox Code Playgroud)

python powershell gitlab cicd

11
推荐指数
1
解决办法
3万
查看次数

标签 统计

cicd ×1

gitlab ×1

powershell ×1

python ×1