【发布时间】:2023-03-14 14:22:01
【问题描述】:
有没有人尝试上传由具有多个计划输出的单个作业生成的 terraform 报告工件?
例子:
terraform:plan:
image: my-tf-container
stage: terraform
tags: [docker]
script:
- |
echo -e '{
"create": 0,
"update": 2,
"delete": 0
}' > ./plan-summary-0.json
- |
echo -e '{
"create": 1,
"update": 2,
"delete": 4
}' > ./plan-summary-1.json
artifacts:
reports:
terraform:
- "./plan-summary-0.json"
- "./plan-summary-1.json"
在管道日志中,我收到以下错误:
Uploading artifacts...
./plan-summary-0.json: found 1 matching files and directories
./plan-summary-1.json: found 1 matching files and directories
WARNING: Uploading artifacts as "terraform" to coordinator... failed id=164225 responseStatus=500 Internal Server Error status=500 token=******
WARNING: Retrying... context=artifacts-uploader error=invalid argument
WARNING: Uploading artifacts as "terraform" to coordinator... failed id=164225 responseStatus=500 Internal Server Error status=500 token=*****
WARNING: Retrying... context=artifacts-uploader error=invalid argument
WARNING: Uploading artifacts as "terraform" to coordinator... failed id=164225 responseStatus=500 Internal Server Error status=500 token=*****
FATAL: invalid argument
Cleaning up file based variables
00:01 ERROR: Job failed: exit code 1
【问题讨论】:
标签: gitlab terraform gitlab-ci