locked
Can build status summary be included in email notification? RRS feed

  • Question

  • Hello,

    In the build report, there is one line of summary on # of errors and warnings of the build, like
          
       Errors and Warnings: 0 errors, 12 warnings

    is that possible we can see this summary inside the email notification, i.e., among the "Build Finish Time", "Build Log Location", ...?

    The reason for me to ask this is that we can find out the build status right way in the email without bothering to click the link in the email and then go to the build report. It is particularly helpful when build Succeeded, but there are some Warings. Usually people don't check out the build report when the build Succeeded, but some warnings could exist.

    I know there is a way to link to the ErrorsWarnings.txt in the email, but that is not an ideal. If I can see the summary directly in the email that would be great.

    Thanks for help.
    Tuesday, December 1, 2009 10:00 PM

Answers

  • thanks for help. It is good to know that we cannot see the extracted data in the email.
    also thanks for the web service you suggested.
    • Marked as answer by tfs10 Tuesday, December 1, 2009 10:20 PM
    Tuesday, December 1, 2009 10:20 PM

All replies

  • One way to do this is to implement your own web service that listens to the BuildCompletedEvent2 event. In the web service, use the TFS API to get the build details and send the mail.

    Although you can customize the layout of the email by modifying the XSLT file that corresponds to the event, there is no way to extend the data that is passed to the XSLT.

    The web service is quite simple to implement, we have implemented a web service that send out emails to the person(s) who breaks the build. This mail contains the complete build status, and the buildlog and error/warnings log are attached to the email.

    Here is a sample on how to create a web service that can respond to events from TFS
    http://notgartner.wordpress.com/2006/07/04/how-to-listen-for-team-foundation-server-tfs-event-notifications-using-windows-communication-foundation-wcf/

    Regards
    /Jakob


    Blog: http://geekswithblogs.net/jakob Twitter: http://twitter.com/osirisjakob
    Tuesday, December 1, 2009 10:14 PM
  • thanks for help. It is good to know that we cannot see the extracted data in the email.
    also thanks for the web service you suggested.
    • Marked as answer by tfs10 Tuesday, December 1, 2009 10:20 PM
    Tuesday, December 1, 2009 10:20 PM
  • Glad it helped.

    If you find answers in the forum helpful, you should mark them as answer to encourage people to help out more in the forums.

    Cheers
    /Jakob


    Blog: http://geekswithblogs.net/jakob Twitter: http://twitter.com/osirisjakob
    Wednesday, December 2, 2009 8:11 AM