Skip to content

dpires/jenkins-slack-webhook-plugin

Repository files navigation

jenkins-slack-webhook-plugin

Build Status

Usage

Assuming you have a Slack webhook trigger word set to 'jenkins', the following commands are available:

[You]: jenkins list projects
[SlackWebhookBot]: my-project-one
                   my-projects-two
[You]: jenkins run my-project-one
[SlackWebhookBot]: Build scheduled for my-project-one
[You]: jenkins get my-project-one #45 log
[SlackWebhookBot]: Build started by...

Installation

Slack Configuration

  1. In your Slack integration settings create a new outgoing webhook
  2. In the URL field add YOUR_JENKINS_HOST/webhook/ (The webhook endpoint is off root, the final / is required)
  3. Copy the Token value

Jenkins Configuration

  1. Under configure system, add the Slack token you copied to Global Slack Webhook Settings

Developer Instructions

This plugin uses gradle wrapper, so the only dependency is a working JDK (7/8).

  • To build the .hpi plugin (build/libs/slack-webhook-plugin.hpi)
./gradlew jpi
./gradlew server

License

MIT

About

A Jenkins plugin that exposes an endpoint to be used by a Slack outgoing webhook

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages