This app shows Sonarqube statistics from SonarQube servers or SonarCloud.

This app shows SonarQube statistics for Bitbucket repositories like test code issues, test coverage, code duplication. This app also highlights the failed quality gates. All metrics are linked to SonarQube's Web UI. It works with public and private SonarQube servers (tested with sonar server 7.9.4 ) and possibly SonarCloud (not tested yet).
Please note that in order to have this app available in all repositories of your team, you have to install it on the team account.
This is a private consumer checkbox, choose scopes: account: read, repositories: readconfig.toml file.docker pull 1node/bb-sonar-stats:latestdocker run -itd -v </path/to/config.toml>/config.toml:/app/config.toml -p <app_port>:9001 1node/bb-sonar-stats:latestconfig.toml example:
baseUrl = https://bb-sonar-stats.1node.xyz
port = 8080
logLevel = "info"
organization = "1node"
bitbucketOauthKey = <bitbucket oauth key>
bitbucketOauthSecret = <bitbucket oauth secret>
repoBranch = "master"
sonarConfigPath = "sonar.json"
| Key | Value description |
|---|---|
| baseUrl | Domain mapped to your application. |
| port | Port on which your application listening. |
| logLevel | Logging level. Possible values: debug, info, warning, error, fatal, panic. |
| organization | Your organization name. You need to fill in this field to make bitbucket app descriptor unique. |
| bitbucketOauthKey | Bitbucket oauth key from oauth key registration. |
| bitbucketOauthSecret | Bitbucket oauth secret from oauth key registration. |
| repoBranch | Main branch of your repo. For example: main, master, production. |
| sonarConfigPath | Path to sonar.json in your repo. By default application waiting for this file in the repo root. |
docker build -t 1node/bb-sonar-stats:latest -f ./docker/Dockerfile .This app needs a configuration file called "sonar.json" in the root folder of the master branch of the Bitbucket repository. This file must contain the Sonarqube server or Sonarcloud URL, the project key of Sonar project which should be associated with this repository and token for account that have access to sonarqube project (or without token if sonar peoject is public). Example:
{
"server": "https://sonar.domain.tld",
"project_key": "My-Awesome-Project",
"token": "sonarToken"
}
Content type
Image
Digest
Size
8.5 MB
Last updated
almost 6 years ago
docker pull 1node/bb-sonar-stats