-
Notifications
You must be signed in to change notification settings - Fork 413
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
Job "Test Connection" throws false positive #51
Comments
I believe you didn't fill the team name since it seems to be missing in the URL: |
Yup, so actually 2 things ... first is the message should say failed. So the "Test Connection" button for a Job is at odds with the global configs it seems. |
I added the specific job button to test a configuration that is fully specified there. Thing is, the global settings ARE indeed used when no specific job setting is informed, but - because of my lack of specific knowledge of jenkins AND java - I couldn't get the test to work accordingly. If you or anyone knows how and want to correct that test, please do it. If the current situation is not acceptable, I can remove that specific test button - I think the request for a test button was mostly to see if the plugin and slack were communicating properly, which the main button confirms. |
Last time I tested, that was the behavior. I configured the following testing environment.
The above worked for me. That is in practice when it comes to jobs actually posting to slack. However, I did not test the Test Connection button at all. I'll see if I can verify the bug this evening. |
I have tested this and verified the bug. Cases tested:
I have verified that this is a bug and that the test connection button throws a false positives. In fact, in all test cases I was not actually able to make the connection test fail. |
It would be desirable to keep the test connection button and resolve this bug. Since I don't actively develop this plugin I welcome the community to provide a contribution! If you would like to be invited to https://jenkins-slack-plugin.slack.com/ for testing then just ask. |
Contributions are welcome to fix this issue. |
+1 Fix candidate PR for merging: |
Hello, 1.8 has been released. Can you please confirm that this bug is fixed for you? My testing shows that it has. |
We are using the 1.8 version of the Slack Notification plugin, and I have the opposite problem -- the "Test Connection" button from a project configuration page indicates a failed connect, even on a project which is successfully posting notifications. The project does not override the global slack config. "Test Connection" from global config succeeds. |
Please file a new issue. This one has been closed. |
Roger that, see #132 |
Thanks. |
In Jenkins Manage configuration , set global values for Slack; however, when going in to a Job that uses Slack, hitting the "Test Connection" is says "Success" BUT the Jenkins logs show:
On latest 1.7 release
The text was updated successfully, but these errors were encountered: