Slack Plugin

Use the Slack plugin to send a message to your Slack channel when a build completes. You will need to supply Drone with an Incoming Webhook URL.

The following parameters are used to configuration the notification:

Parameter Description
webhook_url json payloads are sent here
channel messages sent to the above webhook are posted here
recipient alternatively you can send it to a specific user
username choose the username this integration will post as

Example configuration:

---
notify:
  slack:
    webhook_url: https://hooks.slack.com/services/...
    channel: dev
    username: drone

Example configuration using template to customize the message:

---
notify:
  slack:
    webhook_url: https://hooks.slack.com/services/...
    channel: dev
    username: drone
    template: >
      build #{{ build.number }} finished with a {{ build.status }} status
This website is a public GitHub repository, which is forked from upstream Drone CI documentation. Please help us by forking and improving upstream Drone CI documentation or Tea CI documentation.