Search code examples
azure-devopsrelease-management

VSTS release completion failure alert for automated deployment


I have a branch in a VSTS project that builds automatically on code push. The release also triggers automatically on the build being completed ('continuous deployment trigger').

This works fine.

If the build fails, I receive an email alert. However if the release fails, I don't receive an email alert. If I trigger the release manually (deployment trigger = manual deployment) and the release fails, then I receive an email.

I think this is because whilst I'm signed up to the 'Deployment completion failures' email subscription, as I don't technically 'request' the build under CI/CD (it's requested under 'Microsoft.VisualStudio.Services.ReleaseManagement').

Is there a way I can receive emails when the automated release fails? More specifically, how can I set up CI/CD in VSTS where if the release fails, the person who requested the build that triggered the release receives an email?

Edit: Screenshot requested.enter image description here


Solution

  • Answer was as per starian chen's suggestion to add a collection level subscription.