slack-plugin: Slack-API Notifications no longer working
We’ve upgraded our slack-plugin from 2.18 to 2.19, and can no longer publish notifications to our slack channels. We receive the following error:
12:59:51 ERROR: Slack notification failed with exception: java.lang.IllegalArgumentException: the token with the provided ID could not be found and no token was specified
We are configuring and using the token by using the following XML configuration:
<tokenCredentialId>slack-api-token</tokenCredentialId>
We’ve also tried setting the teamDomain, with no success. Since this worked prior to upgrading to 2.19, I’m guessing this is related to the folder credential support added in PR-541(https://github.com/jenkinsci/slack-plugin/pull/541)
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 3
- Comments: 27 (12 by maintainers)
Needs to be updated to global, System means it’s not available to jobs
We’re now Job context aware to allow supporting folder credentials, it has an impact that any previously working System credentials won’t work.
@timja : this isn’t cool. If you make a breaking change like this, you must mark it as breaking so that when people upgrade they will get a nice red warning about incompatible settings.
For example:
Warning: the new version of this plugin claims to use a different settings format than the installed version. Jobs using this plugin may need to be reconfigured, and/or you may not be able to cleanly revert to the prior version without manually restoring old settings. Consult the plugin release notes for details.