Connect to Bitbucket Cloud (Bitbucket.com)
You can include information from Bitbucket Cloud repository within your Confluence Data Center pages.
This is handled through the use of an App Password that will authenticate the Include Confluence for Data Center app against Bitbucket Cloud.
Warning: This will allow all Confluence users to view private repository content the Bitbucket Cloud user has access to.
Generate a Bitbucket Cloud App Password
The first step is to generate an App Password in Bitbucket Cloud as follows:
Log into Bitbucket Cloud with the User you want to use
Go to your profile (left lower corner)->Personal Settings-> App Passwords
Create an App Password
Use the following permissions:
Pull Requests Read
Create and copy App Password. You wont be able to access it later without regenerating it.
Configure the User and Password in Confluence Data Center
The second step is to add the user and password information into your Confluence configuration by doing the following in your instance:
Go to Administration->General configuration->Include Bitbucket
Enter the Bitbucket Cloud username and app password.
Save the configuration.
That is it! You can now include files and information from Bitbucket Cloud repositories.