Use the artifacts property to pass build artifacts from one build stage down to all the following stages.
.gitlab-ci.yml above we are defining a build with 2 stages.
stage_1 we are creating 4 files:
stage_2, the following files files (created in
stage_1) are available:
The magic happens in the
artifacts section of
which means pass
file1.txt and the
dir1 folder (+ it’s content) to all the following stages.