Slack
Slack notification settings
This node uses the key rooms
as a default prefix if not given a map.
Types
- Sequence of Map
- Sequence of Sequence of Secure
- Sequence of Secure
- Sequence of Boolean
- Map
- Secure
- Boolean
Keys
If given a map, the following keys are supported:
rooms
— Slack channels to notify (type: sequence of secure, or secure)template
— Templates to use for the notification message (type: sequence of string, or string)on_pull_requests
— Whether to notify on pull requests (type: boolean)if
— Condition to determine if a build, stage, or job should be run, a config source imported, or a notification sent (type: string, e.g.:branch = master
, see: Conditional Builds, Stages, and Jobs, Conditional Notifications)on_success
— Notification frequency (type: enum (string), known values:always
,never
,change
)on_failure
— Notification frequency (type: enum (string), known values:always
,never
,change
)enabled
— Whether to enable these notifications (type: boolean)disabled
— Whether to disable these notifications (type: boolean)
Examples
slack:
- rooms:
- secure: encrypted string
template:
- string
on_pull_requests: true
- rooms:
secure: encrypted string
- template: string
slack:
- secure: encrypted string
slack:
- true
slack:
rooms:
- secure: encrypted string
template:
- string
on_pull_requests: true
slack:
secure: encrypted string
slack: true