This project is read-only.

How to Receive Notification When a Build Has Failed

- J.D. Meier, Jason Taylor, Alex Mackman, Prashant Bansode

You can create a new project alert with a filter to receive e-mails only when the build fails.

To create a project alert to notify you when a build fails
  • Create and Test your Build. Make sure that you have a Team Build type in place and that it runs without errors.
  • Register for BuildCompletionEvent event. Use the BisSubscribe.exe tool to register for the BuildCompletionEvent event with a filter specifying that you only want the e-mail notification when the build fails, by using the following command-line syntax:

bissubscribe /eventType BuildCompletionEvent /address /deliveryType EmailPlaintext /server tfsserver1 /filter "TeamProject = 'MyTeamProject' AND CompletionStatus=‘Failed’“
  • Test the build. Test the build by checking in code that fails to compile, execute the build, and ensure that an e-mail notification is received.

Additional Resources

Last edited Jul 26, 2007 at 7:15 AM by prashantbansode, version 1


No comments yet.