Hooking into the cancellation of deployment


Currently we have a hipchat step in our process that notifies us if a deployment fails. What I would like to be able to do is have a different notification if the deployment is cancelled / aborted. Is this possible?

Thanks, David

Hi David,

Thanks for getting in touch! The HipChat template doesn’t have the ability to notify details from cancelled deployments. The reason why is it uses the system variable $OctopusParameters['Octopus.Deployment.Error'], where Error recognizes failed deployments. Cancelled deployments are instead considered warnings (which aren’t retrievable via system variables).

Instead, what I would recommend is to consider taking advantage of the Subscriptions feature we introduced in Octopus 3.5. This allows you to ‘Subscribe’ to audited events, like cancelled deployments, and through webhooks you can send notifications of those events to HipChat. We have written about this Subscriptions feature in detail in our documentation and also in our blog.

Let me know what you think!