LoginSignup
4
4

More than 5 years have passed since last update.

walterを使ってslackにメッセージを送ってみた

Last updated at Posted at 2015-07-22

curlでslackに投稿する場合

curlで投稿する場合
curl -X POST --data-urlencode \
  'payload={"channel": "#walter", "username": "walterbot", "text": "日本語でok"}' \
  https://hooks.slack.com/services/XXXXXXXXX/YYYYYYYYY/zzzzzzzzzzzzzzzzzzzzzzzz

walter用設定

yml指定して実行
$ ./walter -c pipeline.yml
pipeline.yml
---
messenger:
   type: slack
   username: walterbot
   channel: "#walter"
   url: "https://hooks.slack.com/services/XXXXXXXXX/YYYYYYYYY/zzzzzzzzzzzzzzzzzzzzzzzz"

pipeline:
  # step 1
  - stage_name: "ステージ1"
    command: echo "build pipeline is started"
    message: true
    run_after:
      -  stage_name: "ステージ2"
         command: echo "hogehoge 1"
  - stage_name: "ステージ3"
    command: echo "build pipeline is finished"

aa.png

4
4
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
4
4