Help us understand the problem. What is going on with this article?

CircleCIの結果をSlackに通知する

More than 3 years have passed since last update.

circle.ymlの準備

circle.ymlファイルを作って、プロジェクトRoot直下に置く。

CircleCI側の準備

GitHubアカウントがあればSign upできる。
https://circleci.com/

プロジェクトを追加

[Add Projects] からCIしたいリポジトリ選んでビルド!
https://circleci.com/add-projects

これで以降pushを契機にCIが走るようになる。

Slack側の設定

Slack側の設定

integrationにCircleCIを追加する
https://my.slack.com/apps
https://my.slack.com/apps/A0F7VRE7N-circle-ci

  1. [Add Configuration]
  2. 通知したいチャンネルを選んで、Webhook URLを控える
  3. アイコンは任意だけど僕はテンション上がるので変える
  4. [Save Integration]

CircleCI側の設定

  1. 通知したいプロジェクトを選ぶ
  2. [project settings]→[Chat Notifications]
  3. SlackのWebhook URLをSaveしたらそれで完了
  4. 「Hello from CircleCI 」みたいな感じで、最初の通知が来ているか確認する
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした