我尝试在我的Gitlab上使用工件,当我的跑步者尝试将我的工件文件放在Giltlab上时,我有这样的信息:
WARNING: Uploading artifacts to coordinator... failed id=504 responseStatus=405 Method Not Allowed status=405 Method Not Allowed token=HebbSqMD
WARNING: Retrying...
WARNING: Uploading artifacts to coordinator... failed id=504 responseStatus=405 Method Not Allowed status=405 Method Not Allowed token=HebbSqMD
WARNING: Retrying...
WARNING: Uploading artifacts to coordinator... failed id=504 responseStatus=405 Method Not Allowed status=405 Method Not Allowed token=HebbSqMD
FATAL: invalid argument
ERROR: Job failed: exit code 1
我的工作是:
build:
stage: build
script:
- echo "Building the app" > out.txt
artifacts:
paths:
- out.txt
Gitlab 8.16或8.17:同样的问题
其他主机上的Gitlab runner(docker executor):1.11.0 o 1.10.4:同样的问题
答案 0 :(得分:1)
只需在/etc/gitlab/gitlab.rb文件中启用已验证的工件:
## Build Artifacts
# gitlab_rails['artifacts_enabled'] = true
# gitlab_rails['artifacts_path'] = "/mnt/storage/artifacts"