Creating Build Notifications for Visual Studio Online(TFService)

Builds can take time, time that most people don’t have to sit around and wait for to see if everything checked out OK. Notifications allow for multiple team members to be e-mailed as soon as a build kicks off, if it fails, passes, partially succeeds and a whole lot of other parameters to inform you and you team of what’s going on.

For my examples, I’m going to be using Visual Studio 2013 (free download from VisualStudio.com, trial lasts darn-near forever) and Visual Studio Online for my source code repository.

Build notifications are built-in to VS/TFS and can be easily configured. To start, I opened up Visual Studio and connected to the Team Project I wanted to create notifications for. In the Team Explorer pane, there is a Drop-down arrow which contains ‘Settings’.

TeamExplorerSettings

After clicking on settings, a smorgasbord of options appears for Team Project and Team Project Collection

SettingsInTeamExplorer

The option that we want to set notifications with is ‘Project Alerts’ under Team Project. Since I’m using Visual Studio Online, clicking on Project Alerts opened up a web page to my VSO in order to make the configuration changes.

The page offers BASIC alerts, which are predetermined settings that you can just choose the check boxes you want and have the emails set.

NotificationsBasicAlerts

Then there are the custom alerts that let you choose from a starting point – such as a build failure, MY build completes, A file checked in from a specific path, and so on. You can then build on that alert to include specific projects and other ‘if’ and ‘and’ statements.

NotificationsCustomAlerts

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s