Send Visual Studio Online Team Room Notifications from TeamCity

Posted on by Maarten Balliauw

Continuous Integration is all about quick feedback on changes in our code. TeamCity lets us subscribe to important events that may take place during the build process, such as succesful builds, build failures and so on. Email, Jabber, IDE and Windows Tray notifications are supported out of the box, but we can also post these notifications to Visual Studio Online Team Rooms using a newly released plugin.

VSO notification

With Visual Studio Online Team Rooms, we can keep a record of things that happen in our team – checkins, work item updates, code reviews and so on. Team members can have conversations with each other directly in the team room. TeamCity can contribute to the conversation, by posting notifications around builds to the team room. Let’s see how we can configure this integration.

Enabling and Configuring Team Room Notifications

After installing the plugin, we have to enable the integration from the Administration | Server Administration | VS Online Notifier page. Once done, we can configure notifications from within a user profile. In the top right corner of the screen, we can click the arrow next to our username and select My Settings & Tools from the drop-down. We can then setup notifications under the VS Online Notifier tab.

Setup Visual Studio Online Team Room notifications

Team Room notifications will be sent by the user profile we configure here. We’ll have to provide the Visual Studio Online account name, the full Team Room name and a username and password to connect to it. Do make sure to enable alternate credentials in Visual Studio Online to be able to send notifications on behalf of this user.

Once the connection has been tested and saved, we can tell TeamCity which notifications we want to see for one or more build configurations. Check the documentation for a list of the available notification options and how to work with them.

Add new Rule

After saving the rule, TeamCity will send notifications to the configured Visual Studio Online Team Room as events happen.

TeamCity posts message to VSO team room

Every TeamCity user can configure these notifications. In the above screenshot, we’ve created a special “TeamCity user” in Visual Studio Online. It’s perfectly possible to send notifications from other users, too. When multiple users have configured the same events, TeamCity will merge these messages in one so the Team Room is not flooded with the same information.

We can add more information to the notifications if needed, by customizing notification templates. For example, we can add the error messages from the build log or add additional build details in the notification.

Happy building!

Comments below can no longer be edited.

3 Responses to Send Visual Studio Online Team Room Notifications from TeamCity

  1. TeamCity 9.0: импорт проектов, настройки в VCS, фоновая очистка и панды | Zit@i0 says:

    December 19, 2014

    […] Интеграция с Microsoft Visual Studio Online позволяет настроить VSO в качестве системы контроля версий в TeamCity, связать TeamCity билды и историю контроля версий с VSO Work Items, а также получать уведомления от TeamCity прямо в Team Rooms. […]

  2. Petro Sasnyk says:

    February 3, 2015

    This is pretty bad that we can’t set up Room name per configuration.
    We are building ~10 different projects on TeamCity and each of them have own room on VSO.
    I would like to be able to submit individual notification into corresponding room.

    • Pavel Sher says:

      February 13, 2015

      Please submit a feature request in our tracker.

Subscribe

Subscribe for updates