Answer the question
In order to leave comments, you need to log in
GITLAB CI: Is it possible to transfer artifacts between pipelines?
Good day everyone!
I wanted to ask if it is possible to transfer artifacts between pipelines in Gitlab?
Answer the question
In order to leave comments, you need to log in
To save data between pipelines, you need to use cache.
For example, to create a cache for a specific stage and a specific branch, you can use the following key:
cache:
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
script:
- 'curl --location --output artifacts.zip --header "JOB-TOKEN: $CI_JOB_TOKEN" "https://gitlab.example.com/api/v4/projects/$CI_PROJECT_ID/jobs/artifacts/master/download?job=test"'
Perhaps the cache directive will work for you
https://docs.gitlab.com/ee/ci/yaml/#cache
Check if there is cache and don't make if it is.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question