I’m using the following bit of config:
- run:
name: Creating failure artifact to assist with debugging
command: |
zip -r ~/failed-build.zip .
when: on_fail
- store_artifacts:
name: Uploading failure artifact to assist with debugging
path: ~/failed-build.zip
destination: failed-build.zip
when: on_fail
The run
command is only executed when the build has failed as expected. But the store_artifacts
command always runs whether the job is succeeding or failing. I assume this is simply a bug.