Skip to content

Commit

Permalink
jenkins/config: add empty room field
Browse files Browse the repository at this point in the history
After 27693a6, the Slack plugin fails to send messages on new Jenkins instances with:

    java.lang.IllegalArgumentException: Project Channel or Slack User ID
    must be specified.

This seems to be due to some bug in the plugin where without a `room`
setting, it doesn't know to rely on the default room associated with the
token. This is filed upstream in:

jenkinsci/slack-plugin#857

Short-term, let's just work around this by specifying an empty `room`.
  • Loading branch information
jlebon authored and dustymabe committed Nov 16, 2022
1 parent c4c220d commit f52a95d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jenkins/config/slack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ unclassified:
slackNotifier:
teamDomain: coreos
tokenCredentialId: slack-api-token
# https://github.com/jenkinsci/slack-plugin/issues/857
room: ""

0 comments on commit f52a95d

Please sign in to comment.