teamcity-slack icon indicating copy to clipboard operation
teamcity-slack copied to clipboard

Does teamcity-slack support svn as a repository?

Open matfricker opened this issue 4 years ago • 8 comments

Based on the following question on your trouble-shooter guide: Q: I checked the option to send private messages and added the {mention} placeholder to the message, but neither the message was send to the slack user nor the name was mentioned in the slack message!

I was wondering if svn is supported? Our svn server is hooked up via windows authentication and the user / author that is used is a name and not the email address.

Do you have any suggestions?

matfricker avatar Oct 12 '20 15:10 matfricker

Plugin uses TeamCity API and gets the user and other VCS information from this API.

So does TeamCity recognize the commit users in build history? Are they shown in the UI?

alexkvak avatar Oct 13 '20 06:10 alexkvak

Yes, TeamCity does recognise commit users, but the commit username is not an email address.

I do have an email address in my TeamCity profile and username is not an email address.

Is the email address case-sensitive? My slack profile email address starts with a capital letter.

matfricker avatar Oct 13 '20 09:10 matfricker

It does not matter. The VCS commit author should be associated with TeamCity user.

About case-sensitivity – yes it can be an issue. Try to use same case in TeamCity and Slack user info

alexkvak avatar Oct 13 '20 10:10 alexkvak

I can confirm that, email address in teamcity and slack are both the same case now. Have not received a DM message on fail, but the {mention} does have my handle. So it is picking up the user.

matfricker avatar Oct 19 '20 09:10 matfricker

Is Personal notifications enabled at global config page enabled?

изображение

alexkvak avatar Oct 20 '20 14:10 alexkvak

Yes that is enabled.

matfricker avatar Oct 20 '20 15:10 matfricker

If commit author's email cannot be found in Slack, the plugin should log this as error.

Please take a look at teamcity-server.log in Administration -> Diagnostics -> Server Logs

alexkvak avatar Oct 24 '20 07:10 alexkvak

Apologies for the delay in responding...

I have checked server logs and can see an entry there that a message was sent to the correct email address.

I guess I was expecting something to popup in my direct messages but it doesn't. I can see my handle when the build fails under Status: failed. I get notifications from the channel, but all notifications (Started, Success & Failures).

matfricker avatar Nov 18 '20 14:11 matfricker