Prevent Slack Notifications When Cancelling a Buildkite Step

We want to prevent Slack notifications (configured in the Buildkite UI) from being sent when a step is cancelled using buildkite-agent step cancel. Currently, when a step is cancelled this way, the build is treated as Failed, which in turn triggers the Slack notifications. How can we prevent Slack notifications from being sent in this cancellation scenario?

Hi @pavanrh I believe this is related to this post Soft Fail for cancelled builds . I provided an example that was tested and should work for this scenario. Just wanted to check in here incase or please let me know if that post helps address your question. Thanks :slightly_smiling_face: