HowTo: Subscribe to Failed TFS Builds
Join the DZone community and get the full member experience.Join For Free
when you use a build server it is a must to get notified in case of build failures. microsoft’s team foundation server has different possibilities to achieve this: using the build notification tool or through so-called alerts.
one of the prerequisites is the installation of the latest team foundation power tools. you should find them easily by just googling .
build notification tool
the build notification tool is a rather small windows tool that lets you subscribe to your different tfs builds.
you then get notified with im messenger like notifications.
the tool is very beta however. most often it has quite some delays in the notifications and there are a couple of bugs in the subscription dialog. the little red/green icon in the taskbar immediately notifies you about any problems in your builds.
another possibility is to use the tfs alerts to get notified via email. normally you can just right-click on the project of your team project and open the project alerts dialog.
there you can register yourself for any build quality change . that might just work fine for you. however, if you’d like to get notified only for failing builds then you have to define a separate alert definition.
create failed build alert definition
note: so far i’ve not found a way to achieve this in vs2012.
to create a custom alert definition for only failing builds you have
to open vs2010 (with installed tfs power tools) and go to the menu
team > alerts explorer
that should open the alerts explorer view where you can see all of the defined alerts.
click on the “new alert” button in the toolbar.
then define the condition for being notified. for instance
save it and it should work then.
Published at DZone with permission of Juri Strumpflohner. See the original article here.
Opinions expressed by DZone contributors are their own.