SNew
SNew

Reputation: 111

Azure Devops Build Complete Notifications aren't firing

Azure DevOps "Build Complete" Notifications aren't firing when there is auto-trigger fires the build because of a commit in the bitbucket git repo. The build and release complete with no issues but the email notifications don't go to all at all to the team members. The end goal trying to achieve is to send an email to the administrator and the user who has checked the code in the bitbucket repo.

enter image description here

enter image description here

Upvotes: 0

Views: 712

Answers (1)

Edward Han-MSFT
Edward Han-MSFT

Reputation: 3205

By reference to this doc: Supported subscriptions, we can subscribe notification of Build completed, as below. Thus only members of artifact-demo Team can receive notification which meet the filter criteria. enter image description here

From your snapshot, it is out-of-the-box (OOB) or default subscriptions, and will send notifications to all subscribers, by default. Thus members of Dev Team can receive notification. enter image description here

Therefore, if you have a CI pipeline for bitbucket repository, and want to send an email to the administrator and the user (we call it contributor) who has checked the code in the bitbucket repo via Azure DevOps notification service, please make sure that the administrator and the contributor are members of Dev team, so they will get build completed notification. Otherwise, they need to subscribe such notification via Personal notifications or Team notifications

Update>>If you want to only send notifications to the administrator and contributor, you could choose "Custom email address" and then set up multiple subsciptions. enter image description here Or the administrator and contributor can subscribe this notification via Personal notifications. enter image description here

BTW, if some users doesn't want to receive such notifications, they can manually unsubscribe it.

Update2>>Using custom email address will send email to specific user. And if you have 20 members, there might be too many subscriptions, you could consider to add these 20 members to a new group/team(NotificatoinTeam), and then just need to subscribe this notification for this group and choose "Members of NotificatoinTeam", so everything is done. If there is new member wants to get this notification, just adds them to this group/team. Also if some members don't want to get this notification, just remove them from this NotificatoinTeam group/team.

Update3>>You could use this predefined variable Build.RequestedForEmail to get the contributor's email. See: Build variables (DevOps Services) for more details.

Upvotes: 1

Related Questions