TeamCity is Not Sending Notification Emails
Hello,
I'm experiencing issues with getting notification emails. I have 4 build configuration projects with the same template (steps, VCS, etc. are the same). 3 of the projects are successfully sending notification emails except 1. The group "all users" have a notification rule that appears to be correct. The only difference which I see is build agents that are running on the different servers. Do notification emails belong from agents? Does TC send emails from agents?
I'm receiving the following teamcity-notification.log (debug mode is enabled):
[2016-11-18 05:58:12,099] INFO - n.email.EMailNotificatorConfig - Loading configuration file: C:\TeamCity\Configuration\config\_notifications\email\email-config.xml
[2016-11-18 05:58:16,053] INFO - jabber.JabberNotificatorConfig - Loading configuration file: C:\TeamCity\Configuration\config\_notifications\jabber\jabber-config.xml
[2016-11-18 05:59:40,832] DEBUG - areNotificationListener.jabber - Selected 0 users with matching notification rules
[2016-11-18 05:59:40,836] DEBUG - cationListener.IDE_Notificator - Selected 0 users with matching notification rules
[2016-11-18 05:59:40,840] DEBUG - wareNotificationListener.email - Selected 0 users with matching notification rules
[2016-11-18 05:59:40,844] DEBUG - tificationListener.WindowsTray - Selected 0 users with matching notification rules
[2016-11-18 06:05:30,226] DEBUG - areNotificationListener.jabber - Selected 0 users with matching notification rules
[2016-11-18 06:05:30,228] DEBUG - areNotificationListener.jabber - Selected 0 users with matching notification rules
[2016-11-18 06:05:30,230] DEBUG - cationListener.IDE_Notificator - Selected 0 users with matching notification rules
[2016-11-18 06:05:30,231] DEBUG - cationListener.IDE_Notificator - Selected 0 users with matching notification rules
[2016-11-18 06:05:30,233] DEBUG - wareNotificationListener.email - Selected 0 users with matching notification rules
[2016-11-18 06:05:30,234] DEBUG - wareNotificationListener.email - Selected 0 users with matching notification rules
[2016-11-18 06:05:30,236] DEBUG - tificationListener.WindowsTray - Selected 0 users with matching notification rules
[2016-11-18 06:05:30,237] DEBUG - tificationListener.WindowsTray - Selected 0 users with matching notification rules
Thanks!
Please sign in to leave a comment.
Hello Aurimas,
E-mails are sent by TeamCity server using global settings in Administration > Email Notifier.
Could you please attach a screenshot of your "all users" notification rule?
Could it be so that all users of your project have configured their personal notifications for that Build Configuration not to be sent as described in Unsubscribing and Overriding Existing Rules?
Could you please check that at Administration | Groups | <group> | Notification Rules and Administration | Users | <user> | Notification Rules pages?
Hello Marina,
I'm sending the attached screenshot of "all users" notification rule. 3 of notification configurations are working fine except the yellow one, although all of them use the same template.
In addition, the other Notification Rules do not have any other configurations and just inherit rules from All Users. The same with Personal Notification Users. I'm attaching one of other groups of Notification Rules. Thanks!
Hello Aurimas,
Do your builds from your Build Configuration (in yellow) run on Default branch? Could you please attach the screenshot of that Build Configuration Overview?
Hello Marina,
Yes, if I understood properly, all builds run on Default branch (the screenshot is attached). Which of the TeamCity window is the Build Configuration Overview? Do you want me to send all the build steps of that (in yellow) configuration?
Thanks!
Hello Aurimas,
Build Configuration Overview is a Tab in Projects | <YourProjectName> | <YourBuildConfigurationName>.
And what do you see when Editing the Rule if you click Edit Branch Filter and then click on the magic-wand icon
?
Hello Marina,
Thank you very much for your help, with your help the issue has been solved ! :)
When I clicked Edit Branch Filter there was +:<default> and after changing it to +:* (all branches) solved the issue. Was it a correct change?
Thank you again
Hello Aurimas,
Yes, it turns out that your Build Configuration is running on non-Default branch, so adding all branches into notification rule helps.
You are welcome :)