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...
- In your Slack integration settings create a new outgoing webhook
- In the URL field add YOUR_JENKINS_HOST/webhook/ (The webhook endpoint is off root, the final / is required)
- Copy the Token value
- Under configure system, add the Slack token you copied to Global Slack Webhook Settings
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
- To build and install in a local jenkins server running at http://localhost:8080/
./gradlew server