Notification Job
Notification Job
Section titled “Notification Job”Send notifications to Slack or Discord when pipeline events occur.
Configuration
Section titled “Configuration”| Option | Description |
|---|---|
| Type | slack, discord |
| Webhook URL | Incoming webhook URL |
| Message | Custom message with variables |
Variables
Section titled “Variables”Use template variables in messages:
Build {{status}} for {{repositoryName}}Branch: {{branch}}Commit: {{commitShort}} - {{commitMessage}}| Variable | Description |
|---|---|
{{status}} | success, failed, cancelled |
{{repositoryName}} | Repository name |
{{branch}} | Branch name |
{{commit}} | Full commit SHA |
{{commitShort}} | Short SHA (7 chars) |
{{commitMessage}} | Commit message |
{{author}} | Commit author |
{{runNumber}} | Pipeline run number |
Slack Setup
Section titled “Slack Setup”- Go to Slack API
- Create an app with Incoming Webhooks
- Add webhook to your channel
- Copy the webhook URL
Discord Setup
Section titled “Discord Setup”- Go to Channel Settings > Integrations
- Create Webhook
- Copy the webhook URL
Example
Section titled “Example”Notify on success and failure:
┌───────────┐ ┌────────────┐ ┌──────────┐│Build iOS │────▶│Deploy iOS │────▶│ Notify │└───────────┘ └────────────┘ └──────────┘