jenkinsci / slack-plugin

A Jenkins plugin for posting notifications to a Slack channel
https://plugins.jenkins.io/slack/
MIT License
670 stars 413 forks source link

slack notifier in SlackJobProperty or pipeline syntax is missing #431

Open jetersen opened 5 years ago

jetersen commented 5 years ago

Just installed v2.4 and I cannot configure slack notifier via UI or pipeline 😭 Jenkins version: 2.138.3

image image

jetersen commented 5 years ago

Oh so Slack notifier is only supported on abstract build, I'll see what I can do to get it working for pipeline and multibranch pipeline jobs 😅

jetersen commented 5 years ago

I think the best thing to do is actually to reintroduce the JobProperty. Since having the configuration on folder level is nice when we are talking multi branch.

But it would also be nice to have slack notifier available in pipeline, so you can configure it inside a shared pipeline library.

See how it can be used in office 365 connector plugin: https://github.com/jenkinsci/office-365-connector-plugin/tree/master/src/main/java/jenkins/plugins/office365connector

timja commented 5 years ago

If it makes sense then reintroduce it, I didn't deprecate it and don't know the history