GitLab 9.0, dependency [] does not prevent download of artifacts
Summary
After updating GitLab CE/EE to 9.0 and GitLab Runner to 9.0.0, dependencies: []
for a job will not stop runner from downloading artifacts from a previous job.
Bug was introduced with API v4 in GitLab CE/EE 9.0.
Steps to reproduce
.gitlab-ci.yml
image: alpine
build:
tags:
- docker
stage: build
script:
- "echo 'test *****' > test.txt"
artifacts:
paths:
- "test.txt"
test:
tags:
- docker
stage: test
script:
- "[ -f test.txt ] && echo 'Should not exist' && exit 1"
- "exit 0"
dependencies: []
Actual behavior
Stage build
Stage test
Expected behavior
No artifacts should have been downloaded in the test
stage.
Relevant logs and/or screenshots
Please see above.
Environment description
Kubernetes executor running on a Kubernetes cluster in GKE.
Used GitLab Runner version
Running with gitlab-ci-multi-runner 9.0.0 (08a9e6f) on gitlab-runner-docker-1074049319-tp4rm (09c9e60a)