java - Gitlab CI Artifacts Permanently Moved Error 301? -
i finished setting gitlab ci use docker container maven 3 , java 8 build project. build completes when try save generated jar file artifact, docker tells me artifact has been permanently moved....directly after finding jar file.
this 1 has me scratching head.
here giitlab ci yml file:
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 and last few lines console 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 coordinator... failed id=105 responsestatus=301 moved permanently status=301 moved permanently token=4pf6n8at warning: retrying... warning: uploading artifacts coordinator... failed id=105 responsestatus=301 moved permanently status=301 moved permanently token=4pf6n8at warning: retrying... warning: uploading artifacts coordinator... failed id=105 responsestatus=301 moved permanently status=301 moved permanently token=4pf6n8at fatal: invalid argument job succeeded
i able resolve this. apparently docker container, although ping gitlab host, couldnt resolve artifact-uploader domain name specified in runner. changed runner config in /etc/gitlab-runner/config.toml ip of host machine, , artifacts copied fine.
Comments
Post a Comment