TeamCity
 
You are viewing the documentation for an earlier version of TeamCity.

Subscribing to Notifications

Last modified: 20 April 2023

TeamCity provides a wide range of notification possibilities to keep developers informed about the status of their projects. Notifications can be sent by e-mail, Jabber/XMPP instant messages or can be displayed in the IDE (with the help of TeamCity plugins) or the Windows system tray (using TeamCity Windows Tray Notifier).

Notifications in TeamCity are sent per-user according to the user's configured notification rules. Notification rules can also be configured at the user group level, in which case they will apply to all the users in the group.

Subscribing to Notifications



TeamCity allows you to flexibly adjust the notification rules, so that you receive notifications only on the events you are interested in. To subscribe to notifications:

  1. In the top right corner of the screen, click the arrow next to your username, and select My Settings & Tools from the drop-down list. Open the Notification Rules tab.

  2. Click the required notifications type:

    • Email Notifier: to be able to receive email notifications, your email address must be specified in the General area on the My Settings & Tools page.

      tip

      Note that TeamCity comes with a default notification rule. It will send you an email notification if a build with your changes has failed. This rule starts working after you enter the email address.

    • IDE Notifier: to receive notifications right in your IDE, the required TeamCity plugin must be installed in your IDE. For the details on installing TeamCity IDE plugins, refer to Installing Tools.

    • Jabber Notifier: to receive notifications of this type, specify your Jabber account either on the Notification Rules | Jabber notifier page, or the My Settings & Tools page in the Watched Builds and Notifications area. Note that instead of Jabber you can specify your Google Talk account here if this option is configured by the System Administrator.

    • Windows Tray Notifier: to receive this type of notifications, Windows Tray Notifier must be installed.

  3. Click Add new rule and specify the rule in the dialog. The notification rules are comprised of two parts: what you will watch and which events you will be notified about. See the details below.

What Will Be Watched



Which Events Will Trigger Notifications



Rules Processing OrderprocessingOrder



TeamCity applies the notification rules in the order they are presented. TeamCity checks whether a build matches any notification rule, and sends a notification according to the first matching rule; the further check for matching conditions for the same build is not performed. You can reorder the configured notification rules.

The user rules are applied first, then the group rules are applied.

The group rules are processed in hierarchical order: starting from child groups to parent ones.

If there are more than one parent with their own rules set, the inherited rules are processed t op-bottom corresponding to the order they are presented on the Notification Rules user profile tab (alphabetically).

Unsubscribing and Overriding Existing Rules



You may already have some notification rules configured by your System Administrator for the user group you're included in.

  • To unsubscribe from or override group notifications, add your own rule with the same watched builds and different notification events.

  • To unsubscribe from all events, add a rule with the corresponding watched builds and no events selected.

Customizing RSS Feed Notifications



TeamCity allows obtaining information about the finished builds or about the builds with the changes of particular users via RSS. You can customize the RSS feed from the TeamCity Tools sidebar of My Settings & Tools page using the Syndication Feed section (click customize to open the Feed URL Generator options) or from the home page of a build configuration. TeamCity produces a URL to the syndication feed on the basis of the values specified on the Feed URL Generator page.

Feed URL Generator Options



Additional Supported URL Parameters



In addition to the URL parameters available in the Feed URL Generator, the following parameters are supported:

By default, the feed is generated as an Atom feed. Add &feedType=rss_0.93 to the feed URL to get the feed in RSS 0.93 format.

Example



Get builds from the TeamCity server located at "http://teamcity.server:8111" address, from the build configuration with ID "bt1", limit the builds to the those started with the last hour but no more then 200 items: