Spinnaker supports notifications to Slack (and other places) on these six events:
- Pipeline start
- Pipeline completion
- Pipeline failure
- Stage start
- Stage completion
- Stage failure
- Go to your Slack management page, and navigate to "Configure Apps" (or go to https://your-slack-workspace.slack.com/apps/manage)
- Click on "Custom Integrations"
- Click on "Bots"
- Click on "Add to Slack"
- Give your Slack bot a username (such as
spinnakerbot
) - Click "Add bot integration"
- Copy the "API Token". Optionally, customize other settings on the Bot configuration.
- Click "Save Integration"
-
SSH into your Minnaker instance
-
Run this command (replace
spinnakerbot
with your Slack bot's username) to add the Slack notification configuration.hal config notification slack edit --bot-name spinnakerbot --token
-
Run this command to enable the Slack notification
``bash hal config notification slack enable
-
Run this command to apply your changes
hal deploy apply
In order to notify into a given Slack channel, the Slack bot should be invited into your Slack channel(s). Then, in a pipeline configuration, on the 'configuration' page, you can configure notifications to those channels for when your pipeline starts, completes, or fails, and you can additionally configure the same notifications on individual stages.