Notification Email in case of Failure

Hi Team,

We have setup our project to send a notification email in case everything runs smoothly and is successful.

However, we would like to setup a process where if we encounter any issue, we would get an email with failure.

Also, if that is possible, can we get the exact error that we got in the email?


Hi Omkar,

You can setup an email step that runs if there is a failure during the deployment.

You can then include the error that occurred by including the #{Octopus.Deployment.Error} (The error causing the deployment to fail, if any) and #{Octopus.Deployment.ErrorDetail} (A detailed description of the error causing the deployment to fail).

I hope that helps!

Thank you and best regards,