Drone plugins > Webhook
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
stringrequiredThe URLs to send the webhook to.
Default: none
username
stringoptionalThe username to use for basic auth.
Default: none
password
stringoptionalThe password to use for basic auth.
Secret recommendedDefault: none
method
stringoptionalThe HTTP method to use for the request.
Default: POST
content_type
stringoptionalThe content type of the webhook.
Default: application/json
template
stringoptionalCustom template for webhook
Default: none
headers
arrayoptionalMap of custom headers
Default: none
skip_verify
booleanoptionalSkip SSL verification.
Default: false
debug
booleanoptionalEnable debug information.
Default: false