Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
sergey-prosvirnin opened this issue Feb 25, 2020 · 16 comments

Comments

@sergey-prosvirnin
Copy link

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
Copy link
Owner

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

@alexkvak
Copy link
Owner

Is notifications broken since update to 1.5.1?

@sergey-prosvirnin
Copy link
Author

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
Copy link
Author

sergey-prosvirnin commented Feb 25, 2020

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
Copy link
Owner

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

@sergey-prosvirnin
Copy link
Author

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

image

@alexkvak
Copy link
Owner

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
Copy link
Author

sergey-prosvirnin commented Feb 25, 2020

Unfortunately, that option didn't help me.

image

@alexkvak
Copy link
Owner

What branch name do you see in build history list?

@sergey-prosvirnin
Copy link
Author

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

image

@alexkvak
Copy link
Owner

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

@sergey-prosvirnin
Copy link
Author

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

image
image

@alexkvak
Copy link
Owner

You should edit VCS root and specify correct branch specification

изображение

@sergey-prosvirnin
Copy link
Author

Unfortunately, these actions have not been successful.

image

@alexkvak
Copy link
Owner

изображение

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

изображение

@alexkvak
Copy link
Owner

Feel free to reopen if needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants