I have a gitlab CI build process with 4 steps, in which artifacts produced in first step are packaged into docker image in 2nd step, then the output image is given as the artifact to 3rd step, and there is a 4th step afterwards, that notifies external service.
The 2nd step needs artifacts from step 1, the 3rd step need artifacts from step 2. This is done with 'dependencies'parameter and it works fine.
What is not working is the step 4, that need no artifacts. I've skipped the 'dependencies' block, then I've declared dependencies: []
, but in both cases the both artifacts are downloaded!
How do I correct inform gitlab CI that the step has no dependencies? Or is it some bug in Gitlab CI?
The artifacts are stored by default in /home/git/gitlab/shared/artifacts . Save the file and restart GitLab for the changes to take effect.
A release is a collection of artifacts in your DevOps CI/CD processes. An artifact is a deployable component of your application. Azure Pipelines can deploy artifacts that are produced by a wide range of artifact sources, and stored in different types of artifact repositories.
Artifacts are files created as part of a build process that often contain metadata about that build's jobs like test results, security scans, etc. These can be used for reports that are displayed directly in GitLab or can be published to GitLab Pages or in some other way for users to review.
GitLab runner is a build instance which is used to run the jobs over multiple machines and send the results to GitLab and which can be placed on separate users, servers, and local machine. You can register the runner as shared or specific after installing it.
As per the gitlab-ci documentation:
To disable artifact passing, define the job with empty dependencies:
job:
stage: build
script: make build
dependencies: []
I've found the same issue here: https://gitlab.com/gitlab-org/gitlab-runner/issues/228
This seems to be fixed in: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/10359
Please update your CI Runner to a newer version as that should fix it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With