Getting TeamCity notify using Google Talk - teamcity

I'm setting up TeamCity 7.0.3 on a build machine. Everything is working OK apart from the Google Talk notifications using the Jabber notifier. When I send a test notification it works fine. But when the build completes/fails I don't get any notifications. The notifications do work locally on the machine using the system tray notifier. I have registered for all projects and all events but stil nothing is coming through. I am using the same gmail account to send the message as to receive it which could be a bit odd but the test messages work. This could be a firewall issue I guess but again the test message works.
Any ideas?

I use the following settings in TeamCity 7.1 to set up Jabber:
http://i48.tinypic.com/9ay0xz.png
Obviously, replace my_user#gmail.com with the Google Talk user that should send notifications. Note that, when using Google Talk, you can't send messages to yourself, so the Server User must be different than the Jabber accounts for any users that want to receive notifications.
Now, you need to configure the notification rules for your user. Click on your name in the upper right hand corner, then in "My Settings & Tools" click "Edit" beside the Jabber Notifier under "Watched Builds and Notifications". This page looks like this:
http://i47.tinypic.com/xpq3y9.png
Note that the "Jabber Account" must be different than the "Server User" above (or else you won't receive notifications; this is the first mistake I made when first setting this up). Also note that you must set up rules for each build or groups of builds that you want Jabber notifications for by clicking "Add new rule." Jabber Notifier will not inherit your Email Notifier rules (this is the other mistake I made when first setting this up).

Related

Can't send direct message to Slack bot, feature turned off

I created a Slack bot (app) and I'm not able to send direct messages to it even though I'm pretty sure I have all the permissions enabled.
The direct message window shows Sending messages to this app has been turned off. in the input field.
Am I missing some permissions?
Go to your App Settings page and go to App Home and set the checkbox for "Allow users to send Slash commands and messages from the messages tab"
https://github.com/MicrosoftDocs/bot-docs/issues/2077#issuecomment-843960695
At the bottom you will see the option
Adding following scope worked for me:
1. mpim:write -> Start group direct messages with people
2. im:write -> Start direct messages with people

Outlook 365 gives an error Sorry, something went wrong. You may want to try again. when trying to send an email automatically

I have an accounting application that i use to send emails. Recently with the latest Outlook 365 update, every time i try and send an email, i get the error
"Sorry, something went wrong. You may want to try again."
The application is working through OLE to communicate with Outlook. In the application, there is an option to show the email before sending. This requires myself to click on Send. This option works fine.
However if do not want to see the email before sending and want it to be sent automatically, this is when the error comes up.
I have changed the Programmatic Access to to never warn me and allow 3rd party applications to go through. Prior to changing this setting, outlook use to pop up with a box asking permission for the application to go through. I used to click Allow and the error still appeared. With the above change, it does not prompt for me to allow but the error still appears.

Settings of Incoming WebHooks configuration are ignored

We have created an Incoming WebHooks configuration so that Dynatrace can post alerts to our development channel. This worked great for a while, but later on, we decided to use a separate "operations" channel for notifications. So I changed the "Post to Channel" setting of our Incoming WebHooks configuration and expected that the notifications would appear in the new channel.
However Slack seems to ignore my new "Post to Channel" setting. It keeps posting to the previously configured channel. What am I doing wrong?
I also noticed that the other attributes in the configuration seem to be ignored. E.g. we did not customize the name and icon, but the alerts were still posted with the name "Dynatrace" and a Dynatrace icon. But I am sure that I'm looking at the right configuration because I navigated to the configuration from one of the alert posts. This is really confusing...
This problem was driving me nuts, so I decided to post it here - including the solution that I had found in the meantime:
If the Incoming WebHooks app has certain permissions, the caller of the web hook URL may override the configured channel, name, and icon. This is why messages posted via a specific Incoming WebHooks configuration may be using completely different settings!
Dynatrace is using these override features for alert messages, so alerts will always go to the channel configured on Dynatrace side.

TeamCity not sending email notifications

I am trying to set up an email notification in TeamCity on my project fail. I have set up some user with their information, but when my project fails. i dont get any email.
I have given all the information in 'Email Notofication' tab and did 'Test Connection' giving my email address and it says connection successful. Just wanted to confirm, should i be expecting/getting an email when testing connection with my email address or system just pings/checks if connection is ok?
In my 'Settings and Tools' (under administrator), i have one watched project under 'Email Notifier' which watches for build fail for my project.
Did anyone encountered this problem before, any help will be appreciated
Thanks
Today, I noticed that I also had a "connection successful" dialog after I pressed the 'test connection' button in teamcity 8 but there was no test message sent.
The trouble was I just had "TeamCity" in the circled area below and not "TeamCity#bolinger.ca". As soon as I added the #bolinger.ca the messages started to go through.
I guess there needs to be some better error handling in TC for this case.
I'm using IIS 6.0 smtp server, but I'm sure sendmail or any other mail server for that matter would not appreciate this error.
You have to ensure that the VCS username setting in your TeamCity account matches how it is configured in the VCS root.
When testing connection with your email address, you should receive a test email.
If you didn't receive any test email but it said connection successful, my experience is that sometimes the email ends up in your Junk mail folder. Please check if that is the case.
And if that is not the case, I suggest testing the SMTP server your teamcity server uses, following this guide:
How to test a SMTP server by using telnet
In addition, to successfully setting up SMTP server, you will have to do the following:
After logging-into TeamCity, you will see a dropdown next to your username on top-right.
Select "My settings & tools".
Under "Watched Builds and Notifications", edit the "Email notifier" settings to indicate when you should be notified via email.
So, our case, we have configured the admin's email id to be project-developers' group email id, so that every one gets an email about build status.
Also make sure your users have email addresses (I made this mistake!)

Email user that broke build in Teamcity

In Husdon/Jenkins, I can setup notifications when the build is broken to email the user(s) that made the checkins that broke the build. How do I do this in Teamcity?
I am aware that individual users can setup email notifications for themselves via the Teamcity interface (for when the build is broken), but I ONLY want emails sent to the users that broke the build, also I don't want the requirement that every individual user have to update their Teamcity settings.
Open TeamCity in your browser.
Browse to Administration > Users and Groups > Groups
Click on the group name All Users
Select the tab Notification Rules (you see the Email notifier rules by
default)
Click on Add new rule
choose in the column Watch the
option Builds affected by my
changes
choose in the column Send
notification when the checkbox The
build fails and Ignore failures
not caused by my changes
Save this new notification rule with klick on the Save button.
A notification rule created that way works for all users. That's because the notification rule was created in the administration section within the group All Users, and not within one users personal notification settings. This works also in earlier versions of TeamCity, e.g. in 5.x.
The user still has the option to define additional rules if needed.
At least with Teamcity 6.5 you have roles and groups, and you can set notifications settings based on them.
To achieve what you want, just take a look at the notification for group ALL (everybody) that is configured by default and you can't delete it.
http://yourteamcityinstall/admin/editGroup.html?groupCode=ALL_USERS_GROUP&tab=groupNotifications
I realize this question is dated, and a lot of teams now use Slack. So for those of us that consider e-mail "so 2011", my team has been finding success with this nice Slack Plug-in notifier just for this purpose:
https://github.com/PeteGoo/tcSlackBuildNotifier
Simply upload the zip to the Team City plugins folder, restart the Team City server, and then configure the notifications from the Admin/Build config settings. Also, create a Slack webhook to use in the API Token field.
It can be configured to notify on a number of conditions, but we're only using the "Trigger when build fails" option currently.

Resources