Gitlab CI Artifacts永久移动错误301?

我刚刚完成设置Gitlab Ci,使用Maven 3和Java 8的Docker容器来构build我的项目。 然而,当我尝试将生成的jar文件保存为工件时,构build成功完成,Docker告诉我,findjar文件后,工件已被永久移动….

这一个让我挠了挠头。

这是我的Giitlab CI yml文件:

image: kaiwinter/docker-java8-maven before_script: - apt-get update --fix-missing - apt-get install -y git - git clone -v https://github.com/stefaneidelloth/javafx-d3.git /builds/external/javafxd3 - cd /builds/external/javafxd3/javafx-d3 - mvn install - cd /builds/external/myDemo build: script: "mvn -B install" tags: - java8 - maven3 artifacts: paths: - target/*.jar 

这是来自Job的控制台的最后几行。

 [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 15.547 s [INFO] Finished at: 2017-04-06T17:58:06+00:00 [INFO] Final Memory: 34M/462M [INFO] ------------------------------------------------------------------------ Uploading artifacts... target/*.jar: found 1 matching files WARNING: Uploading artifacts to coordinator... failed id=105 responseStatus=301 Moved Permanently status=301 Moved Permanently token=4pf6n8aT WARNING: Retrying... WARNING: Uploading artifacts to coordinator... failed id=105 responseStatus=301 Moved Permanently status=301 Moved Permanently token=4pf6n8aT WARNING: Retrying... WARNING: Uploading artifacts to coordinator... failed id=105 responseStatus=301 Moved Permanently status=301 Moved Permanently token=4pf6n8aT FATAL: invalid argument Job succeeded 

我能解决这个问题。 显然docker容器虽然可以ping gitlab主机,但是不能parsingrunner中指定的artifact-uploader域名。 我将/etc/gitlab-runner/config.toml中的runnerconfiguration更改为主机的IP,并且工件复制得很好。