Sends a custom notification to Slack.
Add the following snippet to the script section of your bitbucket-pipelines.yml file:
- pipe: ayalaluquez/slack-notify:master
variables:
WEBHOOK_URL: '<string>'
MESSAGE: '<string>'
URL_SITE: '<string>'
# DEBUG: '<boolean>' # Optional.
| Variable | Usage |
|---|---|
| WEBHOOK_URL (*) | Incoming Webhook URL. It is recommended to use a secure repository variable. |
| MESSAGE (*) | Notification message. |
| URL_SITE | site url, returns the status code of the site you are deploying |
| DEBUG | Turn on extra debug information. Default: false. |
(*) = required variable.
To send notifications to Slack, you need an Incoming Webhook URL. You can follow the instructions here to create one.
Basic example:
script:
- pipe: ayalaluquez/slack-notify:master
variables:
WEBHOOK_URL: $WEBHOOK_URL
MESSAGE: 'Hello, world!'
URL_SITE: example.com
Content type
Image
Digest
Size
5 MB
Last updated
over 6 years ago
docker pull tetrix/slack