Prerequisites
Creating an API token
When integrating SCM repositories, you will need an API token you create in Bitbucket Cloud (Premium).
Authentication between Bitbucket Cloud and Polaris is managed with an API token that you create in Bitbucket Cloud. For additional information: Create an API token.
Important: Must be created in Bitbucket Cloud (Premium). Standard and Free versions does not allow users to create webhooks.
Important: Token must be created by a Bitbucket Cloud Organization Owner or users with the "Manage organization webhooks" permission, who are authorized to manage organization webhooks. Although other Bitbucket Cloud users may be able to select the scope requirements when creating a token, the token will not work due to permission requirements in Bitbucket to manage organization webhooks.
Note: App passwords have been deprecated for Bitbucket Cloud. Existing projects integrated using App Password will continue to work until the password expires or Atlassian ends support. After your App Password stops working or if creating a new integration, use API tokens.
SCM bulk onboard to create applications and projects
See General Prerequisites before starting.
Customizing onboarding (optional)
SCM bulk onboarding projects into an application
See General Prerequisites before starting.
- On the Portfolio page, select an application by clicking on its name.
- On the Application page, select + Create > New Project(s) with SCM.
- Connect to your SCM:
- Repository Mapping: Select projects/repositories to import as new projects from pulldowns. If an arrow is next to a name, you can click to select repositories within it.
- Click Import Repositories.
Next Steps
- Organization Admins can monitor activity in audit logs (My Organization > Audit Logs).
- Change settings or add:
- You can also 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.