Run if previous Step failed

I want to integrate Slack notifications, I’ve added slack step… I’ve checked “Run if previous Step failed”, will that step run if 1st step was failed for example, and Slack step is 7th?

  • Step1 - FAILED
  • Step2 (don’t run if prev. step failed) - SKIP
  • Step3 (run if prev step failed)

Will Step3 will run or everything will stop at Step2? I want Slack to notify me if something has gone wrong.

1 Like

Hi @Sorix,

Thanks for asking this here! :wink:

If that option is enabled on a step (any step), then that step will run even if a previous step failed.

It will. The Slack step is configured so that it runs in every case, regardless of whether the build is successful or not.

With the Slack step’s inputs/options you can define separate messages, icons etc. for the case if the build failed.

If you have any questions just let us know!