使用docker执行程序的gitlab-runner无法上传文物
我有问题在我的构build产生文物。
我的设置是一台服务器,安装了Gitlab,同一台服务器安装并configuration了运行程序。
Gitlab v9.5.1 Gitlab Runner v9.5.0
鉴于这个gitlab-ci.yaml
image: node:6 before_script: - npm install cache: untracked: true key: '$CI_BUILD_REF_NAME' paths: - node_modules/ stages: - test - build testJob: stage: test script: - npm test buildJob: stage: build when: manual artifacts: paths: - dist/ script: - npm run build
并configuration使用docker执行器的运行。 除了处理工件之外,所有东西都是按照它应该build立的。
手动执行buildJob时,我得到以下输出
Uploading artifacts... dist/: found 17 matching files WARNING: Uploading artifacts to coordinator... failed id=174 responseStatus=404 Not Found status=404 Not Found token=KVw9XgVH WARNING: Retrying... WARNING: Uploading artifacts to coordinator... failed id=174 responseStatus=404 Not Found status=404 Not Found token=KVw9XgVH WARNING: Retrying... WARNING: Uploading artifacts to coordinator... failed id=174 responseStatus=404 Not Found status=404 Not Found token=KVw9XgVH FATAL: invalid argument
但是,如果我在Mac上本地安装的运行程序上运行相同的版本,则所有内容都按预期运行,并且工件已正确上载到服务器。
这告诉我,这是与我的服务器上的docker / gitlab亚军设置。 但我不太确定从哪里开始看。
这是在docker / runner设置上设置一些权限的问题吗?
希望任何人都可以帮助我。