Bitbucket Cloud Integrations for SonarCloud & SonarQube | Sonar

Bitbucket Integration

clean code in your Bitbucket repositories

Sonar tightly integrates with Bitbucket enabling your team to consistently and efficiently deliver clean code that's free of vulnerabilities, bugs and code smells.

Sonar features for Bitbucket

extended Bitbucket experience for clean code

Enhance your Bitbucket experience with Sonar and ensure only clean code will be added to the code base. With just a few clicks you're up and running right where your code lives.

pull request decoration

Sonar automatically decorates code quality metrics directly on your pull requests & feature branches. Resolve issues BEFORE you merge.

go/no-go Quality Gate

Fail your Bitbucket pipelines when the quality of code doesn’t meet your defined requirements. Clean code becomes the norm!

issue review

Review and prioritize issue remediation during code reviews directly from Bitbucket.

monorepo support

Configure multiple Quality Gates and receive project-labeled messages in your Bitbucket mono repository.

Background image of bits of code connecting to each other

integrate Bitbucket with Sonar now!

Self-managed app -->SaaS App -->
easy onboarding, instant value

built-in features make analysis a snap!

easy onboarding and authentication

Sonar supports authentication delegation - if you're logged into your GitLab account, you're all set!

auto issue assignment

Native Git data support so issues are automatically assigned and tracked.

continuous inspection

Configure your CI chain to automatically analyze merge requests and branches and publish the Quality Gate results in the build summary.

loved by developers, trusted by organizations.

a must-have for your team

7M+

developers use Sonar

5,000+

coding rules available

500B+

lines of code analyzed

Bitbucket Code Review

Security vulnerability review in Bitbucket

Sonar workflow integration helps you review and prioritize vulnerabilities directly from your repository during your code reviews.

Learn more -->
reviewing vulnerability in Bitbucket

see the benefits for yourself!

Watch the video Atlassian Bitbucket Pull Request/Branch Decoration with SonarQube

end-to-end CI/CD benefits

With its tight coupling to Bitbucket, Sonar analyzes your projects and provides code health metrics at the right time and in the right place

Promote only clean builds

Non-disruptive code quality analysis overlays your workflow so your team only produces clean builds. Your project’s Quality Gate status is clearly decorated right in Bitbucket Pipelines along with code coverage and duplication metrics. Live updating keeps everyone on the same page.


Integrate with Bitbucket CI, Jenkins, CircleCI or any other CI tool.

See it in SonarQube -->
Image shows results of a pull request

Less setup; more analysis

You’ve got fresh code to analyze so we make it easy to get started. An onboarding wizard guides you in adding all your projects and setting up autodetection of branches and PRs.

1-click with SonarCloud -->
Setting up SonarQube and SonarCloud is easy

supports dozens of popular languages, development frameworks and IaC platforms

Background image of bits of code connecting to each other

integrate Bitbucket with Sonar now!

  • Follow SonarSource on Twitter
  • Follow SonarSource on Linkedin

© 2008-2023, SonarSource S.A, Switzerland. All content is copyright protected. SONAR, SONARSOURCE, SONARLINT, SONARQUBE and SONARCLOUD are trademarks of SonarSource SA. All other trademarks and copyrights are the property of their respective owners. All rights are expressly reserved.