Include Code Quality for Bitbucket Cloud
Breadcrumbs

Usage

Configuration

The app only works with unauthenticated (public) SonarQube™ instances. 

This app needs a configuration file called sonar.json in the root folder of the master branch of the Bitbucket Cloud repository that should get analyzed.

This file must contain the SonarQube™ instance (which must not be protected by authentication) and the SonarQube™ project key which should be associated with this repository. See here for an example:

{	
	"sonarHost": "https://analysis.apache.org",
	"sonarProjectKey": "org.apache.gora:gora"
}

After the successful configuration of the add-on, a panel should show up in the Bitbucket repository overview page that looks similar to this:

index.png


To additionally get pull request comments in Bitbucket for found issues in SonarQube™, you also have to install and configure our SonarQube™ app in for Bitbucket as described in its README file on GitHub.