Overview
Certain steps should only be considered warnings and not failures, or, You want to run later tests no matter if previous ones fail.
Details
Fail Fast is activated by default. You can change this by adding fail_fast: false
to your steps. An example follows:
steps:
skip_fail:
image: alpine
fail_fast: false
commands: exit 1
Notes Steps marked like this will not cause a build to be marked as a failure. To mark the pipeline as a failure later, you will need to add a conditional failing step.
- Note all the steps you are disabling
fail_fast
for. - Add a step at a suitable point in your pipeline to check for these steps.
- This step should have
fail_fast: true
and exit with an error. For example:
check_for_failures:
image: alpine
commands:
- exit 1
when:
condition:
any:
myCondition: steps.step_one.result == 'failure' || steps.step_two.result == 'failure' || etc...