Getting started - watch intro video to get high-level concepts
...
Prerequisites
Bitbucket Datacenter/Server with version 6.8 or newer
SonarQube™ Server version 7.7 or newer
Developer Edition or higher | Community Edition | SonarCloud™ | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 |
| Follow the same steps as for Developer Edition or higher Community Edition version 7.9.x and 8.3+: | Add a SonarQube™ server configuration in the Sonar™ for Bitbucket app under Bitbucket Admin → Sonar™.
| |||||||||||||
2 | Configure Sonar™ Analysis based on your build infrastructure. If you use Bamboo, a seamless integration is possible with our Include Code Quality for Bamboo app. Follow our Sonar™ Analysis Configuration guide and configure the analysis parameters for your SonarQube™ version based on the Analysis Parameter Matrix.
| Follow the same steps as for Developer Edition or higher
Community Edition version 7.9.x and 8.3+: | Follow the same steps as for Developer Edition or higher | |||||||||||||
3 | Run a Sonar™ Analysis on the main branch of the repository where you want to enable the app. Verify that the analysis results are available in SonarQube™.
| Follow the same steps as for Developer Edition or higher | Follow the same steps as for Developer Edition or higher | |||||||||||||
4 | Connect one or more SonarQube™ project to a Repository (Repository → Settings → Sonar™)
| Follow the same steps as for Developer Edition or higher and additionally set:
| Follow the same steps as for Developer Edition or higher | |||||||||||||
5 | Enable Sonar™ for Bitbucket in the settings page of your repository (Repository → Settings → Sonar™)
| Follow the same steps as for Developer Edition or higher and additionally set:
| Follow the same steps as for Developer Edition or higher | |||||||||||||
6 | Go to Repository → Source View of the already analyzed main branch. You should see the issue annotations: If you cannot see Sonar™ issues or test coverage in here, please follow our configuration checklist to find out what went wrong. | Follow the same steps as for Developer Edition or higher | Follow the same steps as for Developer Edition or higher | |||||||||||||
7 | Create a new branch and add a commit with some issues in it. Create a pull request from that branch. Your Sonar™ Analysis Configuration should pick up the new pull request and analyze it correctly. If you cannot see Sonar™ issues or test coverage in here, please follow our configuration checklist to find out what went wrong. | Follow the same steps as for Developer Edition or higher | Follow the same steps as for Developer Edition or higher |
...