Create a Slack app with an incoming webhook and connect it to CloudBees Unify to send notifications to a Slack channel.
Prerequisites
Before you begin, ensure you have:
-
Admin or workspace-owner access to the target Slack workspace.
-
Administrative permissions in CloudBees Unify.
Refer to Access organizations for navigation guidance.
Create a Slack app
-
Navigate to api.slack.com/apps.
-
Sign in with your Slack account if prompted.
-
Select Create New App.
-
In the dialog, select From scratch.
-
Fill in the following fields:
-
App Name: Enter a name, for example
Unify Notifications. -
Pick a workspace to develop your app in: Select the target Slack workspace from the dropdown.
-
-
Select Create App.
| If your workspace requires admin approval for new apps, a warning displays. You can still create the app and request approval afterwards. |
Enable incoming webhooks
-
In the left sidebar of the app settings page, select Incoming Webhooks.
-
Toggle Activate Incoming Webhooks to On.
-
Scroll to the bottom of the app settings page and select Add New Webhook to Workspace.
-
In the permission screen, select the Slack channel where notifications are posted, for example
#unify-alerts. -
Select Allow.
Copy the webhook URL
After authorizing, Slack redirects you back to the Incoming Webhooks page.
-
Locate the newly created webhook in the Webhook URLs for Your Workspace table.
-
Select Copy next to the URL.
The URL has the following format:
https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
| Keep this URL private. Anyone with the URL can post messages to your Slack channel. |
Configure the webhook in CloudBees Unify
-
Sign in to CloudBees Unify.
-
Select an organization, then navigate to .
-
Select + Create notification.
-
In the dialog, select Slack webhook.
-
Fill in the following fields:
-
Channel name: Enter the name of the Slack channel where notifications are posted, for example
unify-alerts. -
Description: (Optional) Enter a short description of this notification.
-
Webhook URL: Paste the URL copied in the previous step.
-
Environment: Select the target environment for this notification.
-
-
Select Submit.
Troubleshoot Slack webhook notifications
If notifications are not delivered, use this guidance to identify and resolve the issue.
channel_not_founderror-
The channel was deleted or renamed after the webhook was created. Re-add the webhook to an existing channel in Slack.
token_revokederror-
The app was uninstalled from the workspace. Reinstall the app: navigate to .
- Notifications not arriving in Slack
-
The wrong webhook URL was pasted in CloudBees Unify. Re-copy the URL from api.slack.com/apps, then navigate to , edit the notification, and select Submit.
- Messages posting to the wrong channel
-
The webhook was created for the wrong channel. Create a new webhook for the correct channel, then update the Webhook URL field in the notification configuration.