Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Email user that broke build in Teamcity

Tags:

teamcity

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.

like image 468
vicsz Avatar asked May 30 '11 21:05

vicsz


People also ask

How do I email TeamCity?

Following are the steps to set up email notifications in TeamCity. Step 1 − In TeamCity, go to your Project dashboard, click on Administration in the top right hand corner. You will then see the Email Notifier link in the left hand side. Click on this link to bring up the general settings for Email.

How do you mark as failed in TeamCity?

Another build failure condition causes TeamCity to mark build as failed when a certain text is present in the build log. To add such failure condition, click Add build failure condition and select from the list: Fail build on metric change.

How do I manually build TeamCity?

To run a custom build with specific changes, open the build results page, go to the Changes tab, expand the required change, click the Run build with this change, and proceed with the options in the Run Custom Build dialog. Use HTTP request or REST API request to TeamCity to trigger a build.

How do I cancel my TeamCity build?

To stop a running build:Click Stop build link, which becomes available, while the build is in progress. In the Stop build dialog, enter your comment, and click OK.


1 Answers

  • 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.

like image 84
KimCM Avatar answered Sep 19 '22 04:09

KimCM