Sign inSign up

tetrix/slack

By tetrix

•Updated over 6 years ago

Image
0

1.5K

tetrix/slack repository overview

⁠Bitbucket Pipelines Pipe: Slack Notify

Sends a custom notification to Slack⁠.

⁠YAML Definition

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.

⁠Variables

VariableUsage
WEBHOOK_URL (*)Incoming Webhook URL. It is recommended to use a secure repository variable.
MESSAGE (*)Notification message.
URL_SITEsite url, returns the status code of the site you are deploying
DEBUGTurn on extra debug information. Default: false.

(*) = required variable.

⁠Prerequisites

To send notifications to Slack, you need an Incoming Webhook URL. You can follow the instructions here⁠ to create one.

⁠Examples

Basic example:

script:
  - pipe: ayalaluquez/slack-notify:master
    variables:
      WEBHOOK_URL: $WEBHOOK_URL
      MESSAGE: 'Hello, world!'
      URL_SITE: example.com

Tag summary

Content type

Image

Digest

Size

5 MB

Last updated

over 6 years ago

docker pull tetrix/slack