Drone plugins > Webhook
webhook.svg

Webhook

by drone-plugins


Use the Webhook plugin to notify services via Webhook when a build completes. You will need to supply Drone with outgoing Webhook URLs.

Example

kind: pipeline
name: default

steps:
- name: send
  image: plugins/webhook
  settings:
    username: myusername
    password: mypassword
    urls: https://your.webhook/...
    content_type: application/json
    template: |
      {
        "owner": "{{ repo.owner }}",
        "repo": "{{ repo.name }}",
        "status": "{{ build.status }}",
      }

Properties

  • urls

    stringrequired

    The URLs to send the webhook to.

    Default: none

  • username

    stringoptional

    The username to use for basic auth.

    Default: none

  • password

    stringoptional

    The password to use for basic auth.

    Secret recommended

    Default: none

  • method

    stringoptional

    The HTTP method to use for the request.

    Default: POST

  • content_type

    stringoptional

    The content type of the webhook.

    Default: application/json

  • template

    stringoptional

    Custom template for webhook

    Default: none

  • headers

    arrayoptional

    Map of custom headers

    Default: none

  • skip_verify

    booleanoptional

    Skip SSL verification.

    Default: false

  • debug

    booleanoptional

    Enable debug information.

    Default: false