LoginSignup
16
2

More than 3 years have passed since last update.

MattermostとGitLabの連携

Last updated at Posted at 2019-08-27

gitにプッシュしたとき、Mattermostに通知が来るように設定したときのメモ

■Mattermost

1.メインメニュー→「統合機能」選択
2.「統合機能」→「内部向きウェブフック」を選択
3.「内向きのウェブフックを追加する」押下
4.下記の画面が表示されるので必要なところを埋める(今回は下記の内容で作成)
内部向きウェブフック設定.png
5.「保存する」押下

Webhook URL作成完了(3で表示されていた画面に作成したURLが表示される)

■GitLab

1.連携させたいプロジェクトを選択
2.「設定」→「インテグレーション」
3.スクロールしてProject servicesの「Mattermost notifications」を選択(設定画面開く)
4.設定画面(今回は下記の内容で設定)
  Active チェックする
  trigger 必要な項目をチェック、フォームに連携通知させたいチャンネルを入力
  webhookにMattermostでつくったURLを設定
  usrname を設定
  Notify only broken pipelines チェック(デフォルトのまま)
5.「Test settings and save changes」押下

連携完了

16
2
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
16
2