alexkvak / teamcity-slack

TeamCity Slack plugin
MIT License
124 stars 23 forks source link

Any build notifications in Slack does not work, but the "Try It" function does. #100

Closed sergey-prosvirnin closed 4 years ago

sergey-prosvirnin commented 4 years ago

I have TeamCity Professional 2019.2.1 (build 71758) in which I used to have successful notifications when building successfully in Slack. But now they have stopped working. At the same time Try It function successfully works and sends test notifications to Slack.

Plugin version: 1.5.1 Java version: 13.0.2 OS: Ubuntu 16.04

image image image

alexkvak commented 4 years ago

Could you check Administration -> Diagnostics -> Server Logs -> teamcity-server.log for any related to Slack errors?

alexkvak commented 4 years ago

Is notifications broken since update to 1.5.1?

sergey-prosvirnin commented 4 years ago

Is notifications broken since update to 1.5.1?

No, it's still 1.5.0. I was trying to find a solution to the problem in the update.

sergey-prosvirnin commented 4 years ago

Could you check Administration -> Diagnostics -> Server Logs -> teamcity-server.log for any related to Slack errors?

I looked quickly and found no Slack errors.

teamcity-server.log

alexkvak commented 4 years ago

Could you attach screenshot with Slack build configuration? (Press Edit near Try it)

sergey-prosvirnin commented 4 years ago

Could you attach screenshot with Slack build configuration? (Press Edit near Try it)

image

alexkvak commented 4 years ago

Please look at #21 and #25

You should specify branch name according to the names you see in TeamCity build info.

I guess in your case correct name for Branch field is development

sergey-prosvirnin commented 4 years ago

Unfortunately, that option didn't help me.

image

alexkvak commented 4 years ago

What branch name do you see in build history list?

sergey-prosvirnin commented 4 years ago

I guess I didn't quite get it right where it was.

image

alexkvak commented 4 years ago

As you can see, TeamCity does not parse branch name.

sergey-prosvirnin commented 4 years ago

I see the names of the repositories in the build log.

image image

alexkvak commented 4 years ago

You should edit VCS root and specify correct branch specification  изображение

sergey-prosvirnin commented 4 years ago

Unfortunately, these actions have not been successful.

image

alexkvak commented 4 years ago

изображение

as a result you can now find the branch name on build page

изображение

alexkvak commented 4 years ago

Feel free to reopen if needed