Bitbucket Data Center
How to connect a Polaris project to a repository in Bitbucket Data Center.
Prerequisites
Domains and IPs
Create an HTTP access token
Authentication between Bitbucket Data Center and Polaris is managed with an HTTP access token that you create in Bitbucket. If you haven't done so already, follow the instructions in the Bitbucket Data Center documentation to create an access token: HTTP access tokens > Create HTTP access tokens.
When creating an access token:
- Login to Bitbucket Data Center.
- Select the profile icon (near the upper-right corner of the screen) and open Manage account.
- On the left tab, click on HTTP access tokens and click the create token button.
- Name your token.
- Set Project permissions to Project read.
- Set Repository permissions to Repository read.
- Set the token's expiration date. To avoid issues, we recommend Do not expire.
- .
Important: Store your token in a secure location. Each time you modify a project's SCM integration, you'll need to reenter the token to save your changes.
Connect to a repository hosted in Bitbucket Data Center
Next steps
Now, you can scan on demand (see How to test from the web UI) or schedule automatic testing on a daily or weekly basis (see Test scheduling policies).
Note: From the Tests screen, before beginning a test manually, make sure to test the connection.
