Posts wercker build/deploy status to a Slack Channel.
webhook_url- Your Slack webhook URL.
Options
channel- The Slack channel to override the default channel. (without #).username- The name of your bot. (defaultWercker)branches- Specific branches to notify. (regular expression)notify_on- Allows you to specify to notify onpassedorfailed. (default all allows notify)passed_message/failed_message- Allows you to define additional message onpassed/failed. (You can use slack formatting options)
posts build notification
build:
after-steps:
- install-packages:
packages: ruby
- wantedly/pretty-slack-notify:
webhook_url: $SLACK_WEBHOOK_URLposts deploy notification
deploy:
after-steps:
- install-packages:
packages: ruby
- wantedly/pretty-slack-notify:
webhook_url: $SLACK_WEBHOOK_URLoverride channel and/or username
build:
after-steps:
- install-packages:
packages: ruby
- wantedly/pretty-slack-notify:
webhook_url: $SLACK_WEBHOOK_URL
channel: dev
username: cibotnotify on specific branches only
build:
after-steps:
- install-packages:
packages: ruby
- wantedly/pretty-slack-notify:
webhook_url: $SLACK_WEBHOOK_URL
branches: ^master$notify on failed build only
build:
after-steps:
- install-packages:
packages: ruby
- wantedly/pretty-slack-notify:
webhook_url: $SLACK_WEBHOOK_URL
notify_on: "failed"define additional message on passed build
build:
after-steps:
- install-packages:
packages: ruby
- wantedly/pretty-slack-notify:
webhook_url: $SLACK_WEBHOOK_URL
passed_message: yay :smile:See CHANGELOG
