Importing your Bitbucket Cloud repository
Creating your project by importing your Bitbucket Cloud repository.
Last updated
Was this helpful?
Creating your project by importing your Bitbucket Cloud repository.
Once the integration of your SonarQube instance with Bitbucket Cloud has been properly set up, you can import a Bitbucket Cloud repository to create the corresponding project in SonarQube. To do so, you need the Create Project permission in SonarQube.
The so-created SonarQube project is "bound" to its Bitbucket Cloud repository. With a bound project:
The project’s main branch name will be automatically set up from Bitbucket.
The quality gate status report to the pull requests will be automatically set up.
Starting in Enterprise edition, you can import a Bitbucket Cloud monorepo. See Managing monorepo projects.
You must provide a Bitbucket Cloud API token. Your API token needs the read:repository:bitbucket scope (Read permission for the repositories). To avoid exceeding Bitbucket Cloud API rate limits, it is recommended to use a dedicated Bitbucket user for SonarQube integration.
Bitbucket's API tokens replace the App passwords which are deprecated. See the Bitbucket documentation for more details.
Select Create Project > From Bitbucket Cloud. The Bitbucket Cloud project onboarding page opens.

In Altassian's account email address, enter your email address.
In API token, enter the API token you created in Step 1.
Select Save. The projects and repositories to which the token has access are listed on the page.
Select one or several repositories to be imported and follow the instructions.
Binding to Bitbucket Cloud Configuring Bitbucket Cloud project binding Bitbucket Pipelines
Last updated
Was this helpful?
Was this helpful?

