Slack Notification

Name Description
action Required String The ID of the action.
channel Required String The ID of the Slack channel. More info here.
integration_id Required Integer The ID of the integration.
type Required String The type of the action. Should be set to SLACK.
content Required String The content of the notification.
trigger_time String Specifies when the action should be executed. Can be one of ON_EVERY_EXECUTION, ON_FAILURE or ON_BACK_TO_SUCCESS.
attachments String[] The array of the Slack message attachments. More info here.
  - action: "Send notification to deploys channel"
    type: "SLACK"
    content: "[#${}] ${} execution by <${invoker.html_url}|${}>"
    channel: "C0GAADCCL"
    - "{\"fallback\":\"${} execution #${}\",\"color\":\"good\",\"fields\":[{\"title\":\"Successful execution\",\"value\":\"<${execution.html_url}|Execution #${} ${execution.comment}>\",\"short\":true},{\"title\":\"Pipeline\",\"value\":\"<${execution.pipeline.html_url}|${}>\",\"short\":true},{\"title\":\"Branch\",\"value\":\"${}\",\"short\":true},{\"title\":\"Project\",\"value\":\"<${project.html_url}|${}>\",\"short\":true}]}"
    integration_id: 1

Get started now

14 days of unlimited trial. No credit card required.