要使用 Slack 接收 GitLab CI 的通知訊息,可在 Slack 中加入 Incoming WebHooks App。
選取 GitLab CI 通知訊息收到後要顯示在哪個 Channel。
複製 Webhook URL 後續在 GitLab 設定那邊使用。
設置 App 的名字、描述、圖示等,設置完後按下 Save Settings 按鈕存檔。
開啟 GitLab 的 Integrations 專案設定。
點選 Slack notifications。
設定何時要通知 Slack,以及要通知到哪個 Channel。
設定 Slack 的 Wabhook URL,按下 Test settings and save changes 按鈕測試並存檔。
Slack 就會收到 GitLab 傳來的通知訊息。