New to Bitbucket Cloud? Check out our get started guides for new users.
Integrate Slack with Pipelines
Pipelines can notify Slack about pipeline and deployment results, repository wide, or only for specific branches in addition to the existing Bitbucket notifications.
Install the Slack app
Open the repository you wish to configure notifications for.
Click Repository settings and select Chat notifications > Settings.
Press the Connect button under Slack. A dialog for Slack login might open if you are not already logged in.
Choose the Slack workspace to connect to your repository.
You will receive an automated welcome message in Slack.
Configure the notifications
Notifications can be configured for the whole repository or on a per-branch basis.
Open one of the repositories you have connected to Slack.
Click Repository settings then, select Chat notifications > Settings.
Select the down arrow to the right of the relevant branch, or add a new one if needed.
Choose the notifications to receive.
It can be helpful to set notifications on a per-branch basis. For example, it may be important to receive pipeline fixed notifications for your master branch, but not for other branches in the repository
For Pipelines we have the notifications:
pipeline fixed (for a successful completion after a failed attempt)
deployment failed (this includes error states)
deployment stopped (including paused due to concurrency)
The default configuration is shown here:
Note: build failed and build succeeded are for external third party build tools and do not include Bitbucket Pipeline notifications.
If you receive failed pipeline notifications in Slack, you can re-run your failed build from within your Slack channel.
Was this helpful?