Hi,
I was wondering if it's possible to pass an artifacts list to download instead of having them all download when I need only one of them. This would speed up my pipeline a lot since I use rather large artifacts. I swear I've seen this done before, but I might be wrong. 🤔
In an example like this one, the artifact would download, extract, scripts would be able to edit the data and then it would be reuploaded and passed to further steps... 🤔
artifacts:
download:
- web/app/themes/**
paths:
- web/app/themes/**
Hey @david_treblig
G'day.
You can disable artifact downloading on certain steps that do not require any artifacts by adding the download false flag in YAML as the following example:
- step: name: Integration test image: node:10.15.0 caches: - node script: # By default, download artifacts from the previous step - cat reports/tests.txt - npm run integration-test - step: name: A step that doesn't need artifacts artifacts: download: false # Disabling artifact downloads during this step script: - echo "Hello World!" > hello.txt
As above example, the 1st step will download artifacts while the 2nd step will skip downloading artifacts.
However, if you wish to only skip one of the many artifacts you have in steps, then I believe it's currently not possible. The flag only worked by skipping all artifacts downloaded.
For more information, please check the artifacts page here.
Cheers,
Syahrul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.