slack-plugin: slackSend stopped working for some channels
Your checklist for this issue
-
Jenkins version: 2.233
-
Plugin version: 2.40
-
OS Centos 7.6
Description
Last Monday we upgraded the version of jenkins, after that the slackSend function stop working for some channels.
We setup Jenkins CI app a long ago, on the channel part we specify # build_channel, and that it’s working, if I use a Jenkinsfile with no channel data, it goes to that one.
We also have some other pipelines where we specified the channel, example # notifications_internal, and that stopped working after the jenkins upgrade.
I enabled logs for this plugin, for the default channel i got:
Apr 24, 2020 12:35:35 PM FINE jenkins.plugins.slack.StandardSlackService
Posting: to #build_channel on <my-dt>: {"attachments":[{"fallback":"this is a test, ignore","color":"#439FE0","fields":[{"short":false,"value":"this is a test, ignore"}],"mrkdwn_in":["pretext","text","fields"]}],"link_names":"1","unfurl_links":"true","unfurl_media":"true","channel":"#build_channel","as_user":"true"}
Apr 24, 2020 12:35:35 PM FINE jenkins.plugins.slack.StandardSlackService
Posting succeeded
when I specify a channel I get:
Apr 24, 2020 12:46:48 PM FINE jenkins.plugins.slack.StandardSlackService
Posting: to #notifications_internal on <my-dt>: {"attachments":[{"fallback":"this is a test, ignore","color":"#439FE0","fields":[{"short":false,"value":"this is a test, ignore"}],"mrkdwn_in":["pretext","text","fields"]}],"link_names":"1","unfurl_links":"true","unfurl_media":"true","channel":"#notifications_internal","as_user":"true"}
Apr 24, 2020 12:46:48 PM WARNING jenkins.plugins.slack.StandardSlackService postToSlack
Slack post may have failed. Response: null
Apr 24, 2020 12:46:48 PM WARNING jenkins.plugins.slack.StandardSlackService postToSlack
Response Code: 403
any ideas what could be the problem?
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 24 (11 by maintainers)
then there is a problem because as you can see, in the logs just shows null, but from curl i got an string.
I’m also having the same issue on Jenkins 2.234
Updating the slack plugin to 2.40 stopped Jenkins being able to connect to slack (pressing test connection in Configure System resulted in a failure)
Rolling back to 2.39 instantly fixed it without having to re-invite anything to the channel or change any credentials.