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

No logs: "ERROR: Slack notification failed. See Jenkins logs for details." #534

Closed
KristianWindsor opened this issue Mar 4, 2019 · 2 comments

Comments

@KristianWindsor
Copy link

When I click Test Connection, the logs successfully show up in Jenkins.

But when I try to send a message using scripted pipeline, nothing at all is logged to Jenkins.
This is all that is logged to the job's console output:

run slackstepsend, step false, desc false
Slack Send Pipeline step configured values from global config - baseUrl: true, teamDomain: true, token: false, channel: false, color: false
ERROR: Slack notification failed. See Jenkins logs for details.

What can I do? I have no idea if it's syntax, or the channel can't be found, or if the token is invalid. I'm debugging blind!

@timja
Copy link
Member

timja commented Mar 5, 2019

Check the jenkins system logs, if there's not enough info there then add a log recorder for this class at FINE level:

https://github.com/jenkinsci/slack-plugin/blob/master/src/main/java/jenkins/plugins/slack/StandardSlackService.java

@timja
Copy link
Member

timja commented Mar 16, 2019

Should be fixed or at least better logging in 2.19
#541

@timja timja closed this as completed Mar 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants