Let’s Integrate SonarQube with BitBucket to import Bitbucket Cloud Repositories
4 min readMay 14, 2022
Target Versions:
- Sonarqube 9.4 Developer version
- Bitbucket Cloud
Introduction
SonarQube® is an automatic code review tool to detect bugs, vulnerabilities, and code smells in your code. It can integrate with your existing workflow to enable continuous code inspection across your project branches and pull requests.
SonarQube’s integration with Bitbucket Cloud allows you to maintain code quality and security in your Bitbucket Cloud repositories.
With the Sonarqube and Bitbucket integration, you’ll be able to achieve the following major features
- Import your BitBucket Cloud repositories — Import your Bitbucket Cloud repositories into SonarQube to easily set up SonarQube projects.
- Analyze projects with Bitbucket Pipelines — Integrate analysis into your build pipeline. SonarScanners running in Bitbucket Pipelines can automatically detect branches or pull requests being built so you don’t need to specifically pass them as parameters to the scanner (branch and pull request analysis is available starting in Developer Edition).
- Report your Quality Gate status to your pull requests — (starting in Developer Edition) See your Quality Gate and code metric results right in Bitbucket Cloud so you know if it’s safe to merge your changes.