Configuring Slack Notifier (official) for personal notifications

Answered

The Slack Notifier (official) allows you to tick a box to only be notified of builds that fail due to your own changes. This seems like exactly what I want; don't bug everyone else, just the ones that fail the build.

But I have two questions on how to get this working:

  • How does Team City know which Slack username to contact for a given TC user?
  • How does Team City know what changes in a Git commit belong to a given TC user? I assume some kind of crude email matching?

To add to the complexity here, we have enabled Github SSO, so the emails used for logon might not correspond to the email in the git commits, if this should matter for some kind of matching. GitHub allows you to match multiple emails to a single user, but I do not see something like that in TC (if that should be needed).

0
1 comment
Avatar
Fedor Rumyantsev

Hi! Following up the discussion we held in private for the public accessibility:

> How does Team City know which Slack username to contact for a given TC user?

When you are setting up user-level notifications, TeamCity will prompt you to sign into the Slack; the user you sign in as will be stored within TeamCity and tied to the TC user profile. 

> How does Team City know what changes in a Git commit belong to a given TC user? I assume some kind of crude email matching?

By default, user login is matched with VCS-side usernames and if there is a full match, then the change is considered to be done by this user. Users may define custom VCS username mapping in their settings; the logic is described here.

0

Please sign in to leave a comment.