💬
CI/CD & GitOps

Slack

Team messaging — webhooks and CI notifications

🐧 Linux🍎 Mac🪟 Windows
Reviewed: Tested on: Kubernetes 1.29 · Terraform 1.8 · Ubuntu 22.04

What is this?

Slack is team chat — integrate CI/CD pipelines to post deploy status and alerts.

📥

Step 01

Install Slack

(01)Install Slack

Linux
1sudo snap install slack
2# Or use web: https://slack.com
⚙️

Step 02

Configure Slack

(01)Configure Slack

Linux
1# Incoming webhook (Slack app → Incoming Webhooks)
2curl -X POST -H 'Content-type: application/json' \
3 --data '{"text":"Deploy finished ✅"}' \
4 https://hooks.slack.com/services/T000/B000/XXXX
5
6# Jenkins: Slack Notification plugin → workspace + channel

Step 03

Verify

(01)Verify installation

Linux
1curl -I https://slack.com/api/api.test
🔧

Step 04

Common Problems

#1Webhook returns invalid_payload or 404

Linux
1curl -X POST -H 'Content-type: application/json' \
2 --data '{"text":"test"}' \
3 https://hooks.slack.com/services/T000/B000/XXXX
4# Regenerate webhook in Slack app settings