TODO: receive only specific notification(on commit only) from Bitbucket at specific Slack channel
What I did:
No matter what triggers I tried to use (push only) or choose from list - nothing is happening when I make a commit
But, if I simply use Slack webhook together with curl -X POST -H ..... - I successfully get my messages in desired Slack channel.
What should I to make this work?
Hello Kliment and welcome to the Community!
Connecting Bitbucket to slack should not require a webhook, the application should prompt for the Slack channel and then configure the application. You chat settings within Bitbucket should look as follows:
The older webhook method should be removed when configuring the new method:
If your repository uses the prior Slack integration
If your repository is already set up to trigger notifications for Slack, we recommend that you deconfigure the integration to avoid duplicate notifications. You can stop these notifications from either Bitbucket or Slack.
- From Bitbucket, remove the repository's Slack webhooks:
- From your repository's Settings, click Webhooks.
Click Delete for the webhooks configured for Slack.
- From Slack, remove the Bitbucket app:
- From the Slack App Directory, click Manage.
Find the Bitbucket app (with the old logo) and remove the app.
Source document: Bitbucket Cloud for Slack
Using the new application method should allow you to integrate Bitbucket with Slack without the need for webhooks.
If you’re still having issues with the integration, please let us know.
Regards,
Stephen Sifers
Hello Stephen!
Thanks for your help and I'm glad to be a part of the community!
Your advice was helpful, but I need to specify some things.
I've got genuine Bitbucket and Jira bots running at my Slack workspace. They doing their job fine, however I do receive duplicate notifications from the bots themselves and to #general channel as well.
You suggest to remove the Bitbucket app. Does it mean that Atlassian's Bitbucket app doesn't need anymore and I'll be able to receive notifications just by setting up Chat notifications in my repositories' Settings?
And does the same method can be applied to Jira bot and notifications too?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Kliment,
Any Bitbucket webhook connections which are in place between Slack and Bitbucket should be removed and replaced with the new Bitbucket App. With this said, if you’re getting duplicate messages from Bitbucket to Slack via the app then we may have another issue present.
Can you please clarify if the duplicates are from a webhook or the Bitbucket app?
Regards,
Stephen Sifers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Previously it worked well also with Webhook's, so now the new way is to use the Bitbucket Cloud App?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I do not manage to find a Chat Notification option in my Repository settings. I have tried all the other ways of Slack integration without success.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.