Please add support to have multiple Slack Notifications
I believe this is related to #349 but here is also an implementation suggestion that I think will work for many.
My main problem is that I want to message our #developers channel in case of success or failure, but I also want to message our #test channel in case of a successful build so that they can begin testing it. Maybe it could be possible to add a comma separated custom channel list for each of these?
Notify Build Start Notify Success Notify Aborted Notify Not Built Notify Unstable Notify Regression Notify First Failure Only Notify Repeated Failure Only Notify Back To Normal Include Test Summary Include Failed Tests Include Custom Message
I'd suggest using a pipeline to achieve this.
@jensolsson If you have a Jenkins Pipeline job you can run in the post {} section depending on the job status, e.g.:
post {
success {
slackSend(channel: "#qa", message: "job finished")
}
unstable {
slackSend(channel: "#qa", message: "tests failed")
}
failure {
slackSend(channel: "#devops", message: "internal error")
}
}