Docker+Machine Artifacts no matching files
- Gitlab-EE: 10.1.0-ee
- Gitlab-Runner: Tried both 10.0.2 and 10.1.0
- Docker Machine: 0.13.0-rc1 (I have to use this rc, stable doesn't properly work with GCE)
- Docker: 17.09.0-ce
I recently switched over to using docker+machine against GCE and since then our builds create the artifacts properly in our $CI_BUILD_DIR/coverage directory and the upload "works" but every single build reports "no file matches" and we get an empty 22byte zip file. I've logged into each runner after a build and the files are in the proper place.
What I do is have docker+machine spin up a GCE server that just has docker-CE installed and /var/run/docker.sock is mounted in my config.toml so the docker containers in my builds run directly on the GCE server that was started by docker+machine. Our docker images for integration tests are started via docker compose.
I've enabled debug mode and at the bottom we get this;
++ /usr/bin/gitlab-runner-helper --version ++ echo 'Uploading artifacts...' ++ /usr/bin/gitlab-runner-helper artifacts-uploader --url https://git.mydomain.com --token xxxxxxxxxxxxxxxxxxxx --id 62360 --path coverage/ Uploading artifacts... WARNING: coverage/: no matching files Uploading artifacts to coordinator... ok id=62360 responseStatus=201 Created token=Bmyp95pz + exit 0 Job succeeded
[runners]] name = "gitlab-runner-autoscaler" url = "https://git.mydomain.com" token = "mytoken" executor = "docker+machine" output_limit = 10240 [runners.docker] tls_verify = false image = "node:latest" # The default image used for builds disable_cache = false shm_size = 0 privileged = true cache_dir = "/cache" volumes = ["/var/cache:/cache:rw", "/var/run/docker.sock:/var/run/docker.sock"]