.gitlab-ci.yaml throws "Cleaning up file based variables 00:01 ERROR: Job failed: exit code 1" at the end after successfully run the job
.gitlab-ci.yaml throws "Cleaning up file based variables 00:01 ERROR: Job failed: exit code 1" at the end after successfully run the job
当我尝试将更改提交到 gitlab 以进行持续集成时,我遇到了这个错误,即使我的所有步骤都成功通过了,Gitlab CI 显示了这个
- 正在清理基于文件的变量00:01错误:作业失败:退出代码 1
我目前处于 运行 1 个“部署”阶段 这是我的部署脚本:
image: python:3.8
stages:
- deploy
default:
before_script:
- wget https://golang.org/dl/go1.16.5.linux-amd64.tar.gz
- rm -rf /usr/local/go && tar -C /usr/local -xzf go1.16.5.linux-amd64.tar.gz
- export PATH=$PATH:/usr/local/go/bin
- source ~/.bashrc
- pip3 install awscli --upgrade
- pip3 install aws-sam-cli --upgrade
deploy-development:
only:
- feature/backend/ci/cd
stage: deploy
script:
- sam build -p
- yes | sam deploy
此命令可能会在 docker shell:
中产生问题
yes | sam deploy
试试这个命令:
sam deploy --no-confirm-changeset --no-fail-on-empty-changeset
--confirm-changeset | --no-confirm-changeset Prompt to confirm whether the AWS SAM CLI deploys the computed changeset.
--fail-on-empty-changeset | --no-fail-on-empty-changeset Specify whether to return a non-zero exit code if there are no changes to be made to the stack. The default behavior is to return a non-zero exit code.
当我尝试将更改提交到 gitlab 以进行持续集成时,我遇到了这个错误,即使我的所有步骤都成功通过了,Gitlab CI 显示了这个
- 正在清理基于文件的变量00:01错误:作业失败:退出代码 1
我目前处于 运行 1 个“部署”阶段 这是我的部署脚本:
image: python:3.8
stages:
- deploy
default:
before_script:
- wget https://golang.org/dl/go1.16.5.linux-amd64.tar.gz
- rm -rf /usr/local/go && tar -C /usr/local -xzf go1.16.5.linux-amd64.tar.gz
- export PATH=$PATH:/usr/local/go/bin
- source ~/.bashrc
- pip3 install awscli --upgrade
- pip3 install aws-sam-cli --upgrade
deploy-development:
only:
- feature/backend/ci/cd
stage: deploy
script:
- sam build -p
- yes | sam deploy
此命令可能会在 docker shell:
中产生问题yes | sam deploy
试试这个命令:
sam deploy --no-confirm-changeset --no-fail-on-empty-changeset
--confirm-changeset | --no-confirm-changeset Prompt to confirm whether the AWS SAM CLI deploys the computed changeset.
--fail-on-empty-changeset | --no-fail-on-empty-changeset Specify whether to return a non-zero exit code if there are no changes to be made to the stack. The default behavior is to return a non-zero exit code.