Praqma / JenkinsAsCodeReference

This repository is intended for the reference Jenkins configuration as code as well as JobDSL library
BSD 3-Clause "New" or "Revised" License
142 stars 110 forks source link

Fix #40: Slack config as a separate groovy script #151

Closed alexsedova closed 7 years ago

alexsedova commented 7 years ago

This task took more time because of snippet we had in global config didn't work anymore. I created a new one as well as a property list. According to slack plugin documentation, there are two possibilities to configure Token for slack. One option is using UI in slack services and copy/paste generated token into a properties file. This way you can find on cloudbees site. However, on the plugin github page it recommends creating a secret text credential to keep token invisible. I kept things easier and left the first option. We could add "choosing token from credentials list" to improvement list and get back to it later.