Email notification - Notify Developer they broke the build?

Answered

Hi there,

Is there a simple way to notify the developer via email that they broke a build? Currently the configuration team is notified, but we would like to include the developer in the email as well, either in the TO field or CC.

Is there a simple way to do this? Or is a plugin required?

Thanks :)

Edited by: Hewie on Nov 18, 2008 9:02 AM

9 comments
Comment actions Permalink

I know that individual developers can configure their email notifier to tell them if they've broken the build.

What would be nice for a Sys Admin is to be able to specify a notification policy that overrides individuals' settings. The policy can be as simple as an option that says "always email person who broke the build using username@company-name.com"

Hussain

0
Comment actions Permalink

Yep, that's a similar idea to what I would like to do... The developer will commit changes which is linked to their username, and that username correlates to their email address, so I figure it's not hard to link the "bad" commit to an email...

As an administrator of TeamCity I would like to dictate who has access to the site and the users that are notified when the build changes from good to bad, or bad to good, rather than the developer logging in and electing to watch a build and be notified when it's broken - assuming that's how it currently works?

0
Comment actions Permalink

We've written a plugin to do this. You should do the same - it's easy and gives you complete control over what to put in the email.

Regards,
Hussain

1
Comment actions Permalink

@ Hussain Almusaad,

Can you please give me a details on this plug in? I'm in need of this.

Thanks,

Kavitha

0
Comment actions Permalink

Hi Kavitha,

This functionality is implemented in the latest TeamCity versions. You can subscribe to notifications "affected by your changes". For more details please see the section: https://confluence.jetbrains.com/display/TCD9/Subscribing+to+Notifications#SubscribingtoNotifications-SubscribingtoNotifications.

0
Comment actions Permalink

Hi Alina,

I know that everyone has to configure the email notification in team city in order to receive the email. 

I would like to include the details in the email that whose change has broken the build. Is there a way to do this? Please help.

Thanks,

Kavitha

 

 

0
Comment actions Permalink

Kavitha,

You can configure notification rules for groups in TeamCity. For example for group "All Users" you can create notification rule: "Build with my changes" - Build fails (Ignore failures not caused by my changes).
In this case, if someone from the group broke the build, only he/she will receive a notification. Is it what you are looking for?

It's not possible to add information about "who broke the build" into the notification template. Please vote for the requests: https://youtrack.jetbrains.com/issue/TW-5054, https://youtrack.jetbrains.com/issue/TW-17585.
As of now you can include the list of committers in the email, see an example of the ftl.

0
Comment actions Permalink

I agree. This is a generic solution for the need.

What i am looking is when the build fails, failure notification will be sent to the distribution list. In that email, we need to highlight whose change has broken the build. Is it possible by any way?

 

 

0
Comment actions Permalink

Currently you can list all committers (as I noted in my previous comment) or all changes included in the build. Use 

teamcity.notification.maxChangesNum

property to configure max number of changes to list in e-mail message (integer, default 10).
Unfortunately currently it's not possible to determine whose change broke the build.

0

Please sign in to leave a comment.