Connect to Bitbucket Data Center ☁️
You can add data from one or several Bitbucket Data Center instances. For each instance, follow the instructions below.
Requirements
You can include data from Bitbucket Data Center under these conditions:
The Bitbucket Data Center instance has to use HTTPS
The Bitbucket Data Center has to be accessible from the public internet. Should the instance use a firewall, it has to allow traffic from the app’s backend to the Bitbucket instance.
Configuration in Bitbucket Data Center
To access files from Bitbucket Data Center repositories, use a HTTP access token.
Note that all Confluence users share this HTTP access token and view private repository content the Bitbucket Data Center user has access to.
We recommend using a user created specifically for the purpose of including data into Confluence Cloud through the macro. Avoid using an administrator Bitbucket user.
Log into your Bitbucket Data Center with the user you want to use to access data from Confluence Cloud.
Navigate to ‘Avatar on the Right Upper Corner’ → Manage Account → HTTP access tokens or Personal access tokens in older Bitbucket versions
Create a new token. The default read permissions are enough. Save the token.
Copy the generated token. You won’t be able to see it again. If you loose it you have to revoke and recreate the token.
Configuration in Confluence Cloud
Go to Confluence Configuration → Include Bitbucket. You should then see the following page:
Click Add.
Add your Bitbucket Data Center URL and the HTTP access token. Then submit the configuration.
Finished. Now you can include files from your Bitbucket Data Center/Server repositories.