Reputation:
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?
Upvotes: 52
Views: 40661
Reputation: 3764
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.
Upvotes: 2
Reputation: 306
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
Upvotes: 2
Reputation: 2878
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
Upvotes: 2
Reputation: 1497
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
Upvotes: 37
Reputation: 1172
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.
Upvotes: 99
Reputation: 88064
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. ;)
Upvotes: 1
Reputation: 52518
If you just want the alert (not programmatically): You can right-click on the project in the Team Explorer and select Project Alerts.
Upvotes: 4
Reputation: 22368
Check out the MSBuildCommunityTasks library. It has a Mail task.
Import this into your build project to send the mails.
Upvotes: 2
Reputation: 109005
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.
Upvotes: 5