One of the tools in this package is called Alert Editor, and it lets you subscribe to build faults in a few simple steps:
- Select “Alerts Editor…” from the “Team” menu.
- Click “New” on the toolbar to create a new alert.
- Select “Failed builds” from the “Build Alerts” sub group, and click OK.
- You might have to enter you e-mail address in the Send To field if Team Foundation Server can’t resolve your name.
This alert has a filter that only sends an alert if StatusCode is not Succeded. If you already has an alert, you can add this clause to your existing alert definition. - Select another alert or close the window to save the changes before testing the alert.
Update: Thanks to TerrenceJ in my comments for recommending an improved filter.
The Power Tools Alerts Editor is great as you say. I found it a better strategy to use the expression (StatusCode <> Succeeded). If your Build Passes but your Unit Tests fail, the Status Code will be Partially Succeeded. Only checking for failed will miss this.
ReplyDeleteThanks for taking the time to post a comment. You're completely right and I agree that your expression is better, and I've updated my post to reflect your suggestion.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteJust a quick note: this is not yet available in TFS 2010 Beta 2. All other alert types are ok, except Build alerts.
ReplyDeleteThanks for commenting. The only notification option with Beta 2 is to subscribe to all build notifications, but this gets pretty annoying on my CI builds :P I'm pretty sure Microsoft will fix this before RTM though.
ReplyDelete