Forum Discussion

dd119's avatar
dd119
Copper Contributor
May 30, 2024

Email Notification for failed Scheduled Pipleline runs on azure devops for Specific Env CD BUild

 

Hello All,

 

I have a pipeline running to do a certain task and when the pipeline fails I get an email stating the build failed. However, I'm also scheduling this pipeline to run at 1am every day only for XX Env CD build in this case even if the build fails I don't get any notification email at all.

I need to set up  extra alert to get notified to my email if my schuduled build fails at Env Level. 

referd this but here I can do any Custome to have aaddition filter for My Env:https://learn.microsoft.com/en-us/azure/devops/organizations/notifications/manage-your-personal-notifications?view=azure-devops

 

Thank you.

2 Replies

  • Yes, by design, personal notifications only trigger on general pipeline events (build succeeded/failed, release deployed, etc.), but you can extend this with custom subscriptions or service hooks to capture scheduled runs for a specific environment, learn.microsoft.com/en-us/azure/devops/organizations/notifications/manage-your-personal-notifications?view=azure-devops

  • Default notifications don’t always match every scheduled-run scenario, so create a custom notification subscription for build/pipeline failure and filter it by the pipeline or branch where possible. If you need environment-level filtering and the notification UI doesn’t expose that field, add a final pipeline step with condition: failed() to send mail/webhook/Teams notification yourself.