How to get TFS Build Status notifications?

TfsBuildNotificationsStatus

Tfs Problem Overview


I want to get the build status in TFS (whether it is succeeded or failed). Which classes and methods can be used for this purpose?

Tfs Solutions


Solution 1 - Tfs

You can run Build Notifications, which is similar to CC Tray in that it will continually give you the status of all builds that you're interested in following. To launch the tool, go to...

All Programs-->Microsoft Visual Studio 2010-->Team Foundation Server Tools-->Build Notifications

Click on the Options button to subscribe to whichever builds are on your server. This will now show up in your system tray with a green check box or red X to indicate the status of the builds you've selected.

Solution 2 - Tfs

In Visual Studio 2013 with TFS 2013, you have email alerts from TFS and a Build Notification system tray tool: http://msdn.microsoft.com/en-us/library/ms181725.aspx

However, it usually doesn't show up in the Windows 8 Start screen, even with a search. So, run it manually in most installations from here:

C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\BuildNotificationApp.exe

Solution 3 - Tfs

The TFS API is mostly documented on MSDN under the Visual Studio SDK: http://msdn.microsoft.com/library/bb130146, however the build APIs are in a different location (in the TFS documentation): http://msdn.microsoft.com/library/cc339575.

These are the same assemblies that tf.exe and Team Explorer (etc.) use.

Solution 4 - Tfs

If you just want the alert (not programmatically): You can right-click on the project in the Team Explorer and select Project Alerts.

Solution 5 - Tfs

You can use AnyStatus to monitor both XAML and vNext builds and lots of other monitors such as Windows Services, HTTP, TCP/IP, Ping, GitHub, Other CI/CD tools, Performance Counters and more.

Disclaimer: I am the author of AnyStatus

Solution 6 - Tfs

Check out the MSBuildCommunityTasks library. It has a Mail task.

Import this into your build project to send the mails.

Solution 7 - Tfs

To enable build notification e-mail alerts, in Team Explorer:

If you are not already connected to the team project that you want to work in, then connect to the team project.

Choose Home, and then choose Settings.

On the Settings page, under Team Project, choose Project Alerts. Select one or more alert events.

In the Send My Alerts To box, choose Edit and enter the email address of each person who should receive the alerts. Use semicolons to separate multiple email addresses.

more details, see : https://msdn.microsoft.com/en-us/library/ms181725.aspx

Solution 8 - Tfs

Under TFS 2008, you can right click on the TFS Project name (in Team Explorer) and select Project Alerts.

Then pick the A Build Completes alert and put your email address into the Send To field.

I think TFS 2005 also has this feature, but I can't rememeber. It's been awhile. ;)

Solution 9 - Tfs

I just discovered CatLight which just works with little fuss. Never had any success with AnyStatus. CatLight sits in your tray and notifies you when builds succeed or fail.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionSuneethaView Question on Stackoverflow
Solution 1 - TfsPattrick KingView Answer on Stackoverflow
Solution 2 - TfstmgirvinView Answer on Stackoverflow
Solution 3 - TfsRichardView Answer on Stackoverflow
Solution 4 - TfsGvSView Answer on Stackoverflow
Solution 5 - TfsAlon AmsalemView Answer on Stackoverflow
Solution 6 - TfsGerrie SchenckView Answer on Stackoverflow
Solution 7 - TfsEma.HView Answer on Stackoverflow
Solution 8 - TfsNotMeView Answer on Stackoverflow
Solution 9 - TfsNielWView Answer on Stackoverflow