Search code examples
jenkinsgithubslack

Display Jenkins output into Slack


I'm trying to display open/stale branches onto slack to remind people to admin them accordingly.

Ive gotten Jenkins to get the information needed from Git via shell commands.

But how can one display this information in the Jenkins UI console to a Slack channel?

Any suggestions?

S


Solution

  • You should look into incoming webhooks. Slack provides you a link and you can send a curl command to put the message into slack.

    More information here: https://api.slack.com/incoming-webhooks