-
New Feature
-
Resolution: Fixed
-
Major
-
Powered by SuggestiMate
Add Workflow support for Slack Notifications (Pre and Post build)
[JENKINS-27652] Workflow support for Slack Notifications (Pre and Post build)
Contributions for this are welcome. I don't actively develop the slack plugin. I only maintain pull requests and releases. I think this would definitely be useful.
See https://github.com/jenkinsci/slack-plugin/pull/167
This just is a very basic Workflow step, when and what gets sent must be configured in workflow. For example 'pre' would require one of the first steps to be 'slackSend' and then for 'Post' the last step to be 'slackSend'.
The version from
https://github.com/jenkinsci/slack-plugin/pull/167
worx already quite well for me.
I would like to get this feature into the official repository. How can we help?
Code changed in jenkins
User: Kurt Madel
Path:
pom.xml
src/main/java/jenkins/plugins/slack/workflow/SlackSendStep.java
src/main/resources/jenkins/plugins/slack/Messages.properties
src/main/resources/jenkins/plugins/slack/workflow/SlackSendStep/config.jelly
src/main/resources/jenkins/plugins/slack/workflow/SlackSendStep/help-channel.html
src/main/resources/jenkins/plugins/slack/workflow/SlackSendStep/help-color.html
src/main/resources/jenkins/plugins/slack/workflow/SlackSendStep/help-failOnError.html
src/main/resources/jenkins/plugins/slack/workflow/SlackSendStep/help-message.html
src/main/resources/jenkins/plugins/slack/workflow/SlackSendStep/help-teamDomain.html
src/main/resources/jenkins/plugins/slack/workflow/SlackSendStep/help-token.html
src/main/resources/jenkins/plugins/slack/workflow/SlackSendStep/help.html
src/test/java/jenkins/plugins/slack/workflow/SlackSendStepTest.java
http://jenkins-ci.org/commit/slack-plugin/a9661980e52d5211497b5999c9ca65e8f4293e49
Log:
Possible Fix for JENKINS-27652 - Workflow support for Slack Notifications and https://github.com/jenkinsci/slack-plugin/issues/50 - Workflow plugin integration
Code changed in jenkins
User: Kurt Madel
Path:
pom.xml
src/main/java/jenkins/plugins/slack/workflow/SlackSendStep.java
src/main/resources/jenkins/plugins/slack/Messages.properties
src/main/resources/jenkins/plugins/slack/workflow/SlackSendStep/config.jelly
src/main/resources/jenkins/plugins/slack/workflow/SlackSendStep/help-channel.html
src/main/resources/jenkins/plugins/slack/workflow/SlackSendStep/help-color.html
src/main/resources/jenkins/plugins/slack/workflow/SlackSendStep/help-failOnError.html
src/main/resources/jenkins/plugins/slack/workflow/SlackSendStep/help-message.html
src/main/resources/jenkins/plugins/slack/workflow/SlackSendStep/help-teamDomain.html
src/main/resources/jenkins/plugins/slack/workflow/SlackSendStep/help-token.html
src/main/resources/jenkins/plugins/slack/workflow/SlackSendStep/help.html
src/test/java/jenkins/plugins/slack/workflow/SlackSendStepIntegrationTest.java
src/test/java/jenkins/plugins/slack/workflow/SlackSendStepTest.java
http://jenkins-ci.org/commit/slack-plugin/5149c5ad3d4b6c311156bef62bf5bf6f212e3922
Log:
Merge pull request #167 from kmadel/issue50
JENKINS-27652 - Workflow Support #50
Compare: https://github.com/jenkinsci/slack-plugin/compare/2ab621068b3b...5149c5ad3d4b
Code changed in jenkins
User: Kurt Madel
Path:
COMPATIBILITY.md
http://jenkins-ci.org/commit/workflow-plugin/46930e3c28fd5e52ca04b3ff8c97f1aaf1d640ec
Log:
JENKINS-27652 Workflow support for Slack Notifications (Pre and Post build)
Slack supports Jenkins Pipeline as of version 2.0
Code changed in jenkins
User: Jesse Glick
Path:
COMPATIBILITY.md
http://jenkins-ci.org/commit/workflow-plugin/e161fcfbecaccfc517bcf4c5a843a9c50c437046
Log:
Merge pull request #364 from kmadel/JENKINS-27652
JENKINS-27652 Workflow support for Slack Notifications
Compare: https://github.com/jenkinsci/workflow-plugin/compare/82e7defa37c0...e161fcfbecac
I am reopening this issue because it missed to provide any kind of documentation regarding how we are supposed to use it from inside the pipelines (Jenkinsfile).
This information is missing from
- Main Plugin wiki page
- Ticket description
- Changesets
- Official Jenkins Pipeline Examples - https://github.com/jenkinsci/pipeline-examples/blob/master/pipeline-examples/
I was able to find one Pipeline example which is not related to this plugin at https://github.com/jenkinsci/pipeline-examples/blob/master/pipeline-examples/slacknotify/slackNotify.groovy
Also it seems that the current example does need the slack token inside the code and this is clearly a big security risk that makes its currently implementation unusable. People cannot keep credentials inside the code. Thanks
This information is missing from
It's on:
- https://jenkins.io/doc/pipeline/steps/slack/
- The generated step documentation on your Jenkins instance
Code changed in jenkins
User: Jesse Glick
Path:
COMPATIBILITY.md
http://jenkins-ci.org/commit/workflow-plugin/24f4496e9654c82dc596cb372da5e6eafa1b4d2f
Log:
JENKINS-27652Noting.