Email user that broke build in Teamcity

vicsz picture vicsz · May 30, 2011 · Viewed 19.6k times · Source

In Husdon/Jenkins, I can setup notifications when the build is broken to email the user(s) that made the checkins that broke the build. How do I do this in Teamcity?

I am aware that individual users can setup email notifications for themselves via the Teamcity interface (for when the build is broken), but I ONLY want emails sent to the users that broke the build, also I don't want the requirement that every individual user have to update their Teamcity settings.

Answer

KimCM picture KimCM · Jun 7, 2011
  • Open TeamCity in your browser.
  • Browse to Administration > Users and Groups > Groups
  • Click on the group name All Users
  • Select the tab Notification Rules (you see the Email notifier rules by default)
  • Click on Add new rule
  • choose in the column Watch the option Builds affected by my changes
  • choose in the column Send notification when the checkbox The build fails and Ignore failures not caused by my changes
  • Save this new notification rule with klick on the Save button.

A notification rule created that way works for all users. That's because the notification rule was created in the administration section within the group All Users, and not within one users personal notification settings. This works also in earlier versions of TeamCity, e.g. in 5.x.

The user still has the option to define additional rules if needed.