The Slack integration can be added directly to a step in the
The send_notification utility function can be used with a Slack integration to send a notification message.
For more information, see Sending Notifications from Pipelines.
When you add this integration to a step, a set of environment variables is automatically made available.
|Webhook URL to your Slack channel|
pipelines: - name: pipe1 steps: - name: test_step_1 type: Bash configuration: integrations: - name: mySlack # This is the name of the Slack integration you created in your test instance execution: onStart: - send_notification mySlack --text "starting test_step_1" # replace 'mySlack' with the name of your Slack integration onExecute: - send_notification mySlack --text "onExecute, past test commands" # replace 'mySlack' with the name of your Slack integration onSuccess: - send_notification mySlack # without '--text' to send a generic notification that includes the pipeline name and step name