Integrate Workflow with Slack
Danger
This documentation applies to a deprecated product. Chef Automate includes newer out-of-the-box compliance profiles, an improved compliance scanner with total cloud scanning functionality, better visualizations, role-based access control and many other features. Chef Automate is included as part of the Workflow license agreement and is available via subscription.
Workflow may be configured to allow projects to send Slack notifications to users about changes submitted to that project’s pipeline, such as:
- A change passed verification
- A change was approved by a teammate
- A comment was added to the change request
- A change was accepted
- A change was delivered
- A change failed at a specific stage in the pipeline
Integrating Workflow with Slack requires a webhook to be created in Slack, and then saving that webhook in Workflow. A webhook may be specified at two levels:
- By organization. A webhook that is specified at the organization level enables Slack notifications for all projects that belong to that organization.
- By project. A webhook that is specified at the project level enables Slack notifications only for that project.
Note
Create a Webhook
To create a webhook in Slack:
- Create an incoming webhook in Slack and be sure to use the team in Slack to be associated with Workflow.
- Select a team, and then click the Configure button.
- Select Add Configuration (if that team already has at least one webhook) or Install to add a webhook.
- Under Post to Channel select the channel in Slack to which Workflow will send notifications.
- Click Add Incoming Webhooks Integration. Slack will create webhook, and then provide a location from which the URL for that webhook can be copied.
- Copy the URL.
Add a Webhook to Workflow
To add a Slack webhook for Workflow:
- On the Workflow server, select Organizations.
- Select an organization or a project.
- Click Edit to open the details for that organization or project.
- Pick a meaningful name for the webhook, and then paste the webhook URL.
- Click Send a Test. If a test notification is successful, click Save.
Disable Slack Notifications
Slack notifications are enabled by default, but they may be disabled.
- On the Workflow server, select Organizations.
- Select an organization or a project.
- Click Edit to open the details for that organization or project.
- De-select the Enabled checkbox, and then click Save.
Delete Slack Notifications
Slack notifications are enabled by default, but they may be disabled.
- On the Workflow server, select Organizations.
- Select an organization or a project.
- Click Edit to open the details for that organization or project.
- Delete the URL for the Slack webhook and click Save or click the trash can button.
© Chef Software, Inc.
Licensed under the Creative Commons Attribution 3.0 Unported License.
The Chef™ Mark and Chef Logo are either registered trademarks/service marks or trademarks/servicemarks of Chef, in the United States and other countries and are used with Chef Inc's permission.
We are not affiliated with, endorsed or sponsored by Chef Inc.
https://docs.chef.io/integrate_delivery_slack/