Run command doesn't trigger on a failing container


#1

I’m running two containers at the moment, one of them to test and one to create a release build.

I have a run command to copy some files to a temp directory which is then being sourced to store_artifacts later.

However, this run command never triggers when my tests fail.

The container where the step runs.

The step in question is Copy Violations to Artifacts.
Also, in the first container where the tests fail, neither Danger nor Saving Cache run after Run Tests fails.

(I can’t upload the failing test image, cause New users can only have one image).


#2

On further perusal of the docs, apparently there’s a key when for the run command which defaults to on_success. I edited that to always and it works now.


#3

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.