Skip to content
Peter Goodman edited this page Jan 27, 2015 · 2 revisions

To receive mentions in Slack on failed builds or to be able to subscribe to personal messages via the "Watched Builds and Notifications" panel in your user profile, you will need to configure your user profile properly.

Version Control Username Settings

TeamCity needs to know how to match your TeamCity account with the changes you make in your source control system. To do this:

  • Click on your name at the top of a TeamCity page to see your profile.
  • Click Edit under the Version Control Username Settings section of the page.
  • Now for each VCS Root you can define your username as it will appear.

In the case of git the value of this username depends on how the VCS Root was configured in TeamCity. By default Git roots are with the UserId style, here the username part (before the @) of your email address that you make commits with. Other options are your Author Name or a combination.

Once you have updated your username settings you will see that changes on the build pages will have links to users with your full name shown instead of just your commit user name. If this is not the case then you have not configured your VCS usernames correctly.

Tell TeamCity your Slack username

You can tell TeamCity your Slack username by entering it on the profile page under the Slack Notifier section.

Subscribe to direct build notifications.

The project and build configuration Slack settings produce a single notification for each build result. These are designed to go into shared channels in Slack. However you can now also subscribe to any notifications you want without requiring access to change the project or build configuration settings.

From your profile page, click the Edit link in the Slack Notifier section. Here you can setup any notifications you want and they will only be visible by you, in your @slackbot channel within Slack.