by shinya · 8y ago · 0 comments
You can use the `artifacts` and `dependencies` combo to leverage which artifact will be downloaded into a particular job.
For instance,
bundle-install:
stage: build
script: ...
artifacts:
paths: [bin/*]
yarn-install:
stage: build
script: ...
artifacts:
paths: [bin/*]
rspec:
stage: test
script: ...
dependencies: [bundle-install] # This downloads only `bundle-install` artifact to this job
karma:
stage: test
script: ...
dependencies: [yarn-install] # This downloads only `yarn-install` artifact to this job
eslint:
stage: test
script: ...
dependencies: [] # This downloads nothing
https://docs.gitlab.com/ee/ci/yaml/#dependencies explains how it worksNo comments yet.