/step-pretty-slack-notify

Posts wercker build/deploy status to a Slack channel

Primary LanguageRubyMIT LicenseMIT

Slack Notify Step Docker Repository on Quay.io

Posts wercker build/deploy status to a Slack Channel.

screenshot

REQUIREMENTS

  • webhook_url - Your Slack webhook URL.

Options

  • channel - The Slack channel to override the default channel. (without #).
  • username - The name of your bot. (default Wercker)
  • branches - Specific branches to notify. (regular expression)
  • notify_on - Allows you to specify to notify on passed or failed. (default all allows notify)

EXAMPLE USAGE

posts build notification

build:
    after-steps:
        - wantedly/pretty-slack-notify:
            webhook_url: $SLACK_WEBHOOK_URL

posts deploy notification

deploy:
    after-steps:
        - wantedly/pretty-slack-notify:
            webhook_url: $SLACK_WEBHOOK_URL

override channel and/or username

build:
    after-steps:
        - wantedly/pretty-slack-notify:
            webhook_url: $SLACK_WEBHOOK_URL
            channel: dev
            username: cibot

notify on specific branches only

build:
    after-steps:
        - wantedly/pretty-slack-notify:
            webhook_url: $SLACK_WEBHOOK_URL
            branches: ^master$

notify on specific failed only

build:
    after-steps:
        - wantedly/pretty-slack-notify:
            webhook_url: $SLACK_WEBHOOK_URL
            notify_on: "failed"

CHANGELOG

See CHANGELOG