Notifications
The Notifications build feature is responsible for sending notifications about build statuses and events to external services. Currently, the feature provides Email Notifier and Slack Notifier.
This feature adds to the functionality of user-level notifications that can be assigned to a particular user or user group, but it allows configuring notifications per build configuration. This approach does not require referencing a specific TeamCity user and works better for group notifications.
tip
To set up similar notifications for several build configurations, use a build configuration template.
To configure email notifications for a build configuration:
Enter the target email. For example, you can specify an email list address, and all its subscribers will be receiving build notifications automatically.
Configure a branch filter. If it is not configured, you will receive notifications about the default branch only.
Select events to watch.
tip
To customize the notification texts, you can modify notification templates.
Note that TeamCity Email Notifier relies on the SMTP server settings configured in Administration | Server Administration | Email Notifier.
The Slack Notifier feature relies on a Slack connection that should be preconfigured in the parent project's settings.
After configuring the connection, go to the settings of the build configuration you want to receive notifications for:
In Build Features, add the Notifications feature and select Slack Notifier.
Choose the created connection.
Enter the ID of a channel or user who will be receiving notifications.
tip
Start typing the user ID, and TeamCity will autocomplete it. Alternatively, you can copy this ID from your Slack user profile options (Profile | More | Copy member ID).
Select the message format. Slack Notifier does not currently support custom notification templates. However, if you select the verbose format, you will be able to choose what information to display in notifications.
Configure a branch filter. If it is not configured, you will receive notifications about the default branch only.
Select events to watch.
tip
Watch our video tutorial on how to integrate TeamCity with Slack.
Thanks for your feedback!