This procedure describes how to connect an existing Polaris project to a Bitbucket (Cloud or Data Center) repository.
Before you begin, review Integrate Bitbucket with Polaris. If you're using Bitbucket Data Center, that topic explains how to make sure Polaris has network access to your Bitbucket instance.
Bitbucket Data Center: Create an HTTP access token
Authentication between Bitbucket Data Center and Polaris uses an HTTP access token (personal access token) that you create in Bitbucket. Follow the steps below or the instructions in the Bitbucket Data Center documentation: HTTP access tokens > Create HTTP access tokens.
Bitbucket Cloud: Create an API token
Authentication between Bitbucket Cloud and Polaris is managed with an API token that you create in Bitbucket. If you haven't done so already, use the following instructions to create an API token, or refer to Bitbucket Cloud's own documentation: Create an API token.
Connect to a repository in Bitbucket
Next steps
- Set up event-based test automation. See Event-Based Test Automation in Polaris for SCM Integrations.
- 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.
- Change settings or add sync options. See Synchronizing Polaris with your SCM Provider.