Bitbucket Integration

clean code in your Bitbucket repositories

Enable your team to deliver clean code consistently and efficiently with static analysis seamlessly integrated into Atlassian Bitbucket and Bitbucket Cloud.

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

Get instant code feedback directly inside your Bitbucket pull request and development branches. Resolve issues BEFORE you merge to main.

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


developers use Sonar


coding rules available


lines of code analyzed

GitHub Code Scanning

Security vulnerability review in GitHub

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

Learn more -->
reviewing vulnerability in GitHub

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

With non-disruptive code quality analysis, your project’s Quality Gate status is clearly decorated right in Bitbucket along with code coverage and duplication metrics. Live updating keeps everyone on the same page.

Integrate with Bitbucket, Jenkins, Azure Pipelines, or any other CI.

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 MRs.

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.