How to execute command after pipeline cancellation?

Is it possible to execute some step with command after pipeline’s “Cancel” button pressed?

I’m trying to notify my GitLab by executing curl command about canceled pipeline state, but it doesn’t work at all. All steps become in canceled state and nothing executed after that.

1 Like

Omg, I’ve found it! )

It turns out so simple.

Just added notify with webhook attribute via global “Edit steps” button:

Now it correctly send-out request to my GitLab instance and pipeline changes it’s state to canceled.