6

I have a TeamCity server that builds my application and a YouTrack instance set up to track my feature requests/bugs. I have the TeamCity/YouTrack integration setup so the Issue log correctly fills out in TeamCity with the Items that have been closed in YouTrack since the last successful build. How can I set up TeamCity to email a user a nicely formatted email that contains this list of Issues?

PlTaylor
  • 7,345
  • 11
  • 52
  • 94
  • see http://stackoverflow.com/questions/6180772/email-user-that-broke-build-in-teamcity I dont know whats in the successful build email, perhaps turn it on to see what it contains – wal Dec 05 '13 at 22:15
  • This is close, but I need to be able to include the info from YouTrack as well in the email. – PlTaylor Dec 06 '13 at 02:00

1 Answers1

6

this answer has been adopted from here

  • Open TeamCity in your browser.
  • Browse to Administration > User Management- Groups > All Users
  • Select the tab Notification Rules (you see the Email notifier rules by default)
  • Click on Add new rule
  • Select Builds from the selected build configuration and choose the builds you want notifications for
  • On the right hand side where it says Send notification when tick Build is successful
  • press Save

You should now get an email which has a summary of the changes, eg

Build Compilation :: myproject #2.0. successful (Tests passed: 1288)

Agent: buildagent-01

Changes included: 1 change.

Change 02b88b1b1345 by wturner (1 file): bug1 fixed

Community
  • 1
  • 1
wal
  • 17,409
  • 8
  • 74
  • 109
  • This gets me part of the way there. But what I really need in addition to this is the template code to include the YouTrack work items from the 'Issues' tab of the individual build in the email. – PlTaylor Dec 06 '13 at 02:00
  • `Issues tab of the individual build` <--where is that? – wal Dec 06 '13 at 06:25
  • TeamCity Documentation - http://confluence.jetbrains.com/display/TCD7/Working+with+Build+Results#WorkingwithBuildResults-RelatedIssues p.s. if you don't have YouTrack Integration set up or you don't reference a Ticket in one of your commits in the build this tab will not show up. – PlTaylor Dec 06 '13 at 11:15
  • I have integrations to youtrack set up but for me it is a 'Changes' tab, not an Issues tab. nonetheless, the build success email has sufficient information for each of the fixed issues. (the summary from youtrack for the issue) – wal Dec 06 '13 at 11:53
  • The changes tab contains the source control commit messages and not the YouTrack issues that were addressed. As a company we do not want to email our customers the commit messages as they may contain implementation details and unnecessary information for the end users. The issues in YouTrack that were addressed however is very useful information for the end user, and is what I am looking for. – PlTaylor Dec 06 '13 at 15:15
  • P.S. I am using TeamCity 7.0.3, what version are you using? Maybe they have updated this in Newer versions. – PlTaylor Dec 06 '13 at 15:16
  • im using TC 8.0.3 - i can't see this tab there is some problem but i havent figured it out yet. – wal Dec 06 '13 at 21:38
  • FYI in 8.0.3 it is on the build configuration page but not the individual build page. As 'Issue Log' – PlTaylor Dec 17 '13 at 12:18
  • PITaylor, did you ever figure this out or did you do something else? I am in a similar position. – Tylo Sep 14 '15 at 16:27