LoginSignup
1
1

More than 3 years have passed since last update.

werckerでビルド完了後にSlackに通知する

Last updated at Posted at 2019-06-14

よく wantedly のものを使った記事が検索にかかるが、 wercker 謹製のものが使える。

build:
  steps:
    (略)
  after-steps:
    - slack-notifier:
        url: $SLACK_URL
        channel: deploy
        username: werckerbot
        notify_on: "failed"

notify_on: "failed" は失敗した時だけ通知したい場合に付ける。
$SLACK_URL は wercker の環境変数で Slack の webhook url を指定する。
その他は見たまんま。

失敗時

成功時

参考

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1