Skip to end of metadata
Go to start of metadata

Deprecated

This plugin is not maintained any longer.

Description / Features


Generates reports based on information about builds from Continuous Integration System.

Requirements

Plugin

1.1.2

1.2

1.3

SonarQube

2.2+

3.0+

4.5.1+

Bamboo

(tick)

(tick)

(tick)
Jenkins

(minus)

(tick)(tick)

Hudson

(tick)

(tick)

(error)

TeamCity

(minus)

(minus)

(tick)

Installation

  1. Install the plugin through the Marketplace or download it into the SONARQUBE_HOME/extensions/plugins directory
  2. Restart the SonarQube server

Usage

Specify your Continuous Integration Server Job (URL, credentials, etc.):

    • Either through the web interface: at project level, go to Configuration > Settings > Build Stability
    • Or in your pom.xml file for Maven projects:

Example for Bamboo:

<ciManagement>
  <system>Bamboo</system>
  <url>http://ci.codehaus.org/browse/SONAR-DEF</url>
</ciManagement>

Example for Jenkins:

<ciManagement>
  <system>Jenkins</system>
  <url>https://sonarplugins.ci.cloudbees.com/job/build-stability/</url>
</ciManagement>

Non-Maven example for Jenkins:

Project properties
sonar.build-stability.url=Jenkins:${JENKINS_URL}/job/${JOB_NAME}

 

 

Run a new quality analysis and the metrics will be fed.

Security note for SonarQube 3.4.0 to 3.6.3 included

For the *.secured properties to be read during the project analysis, it is necessary to set the sonar.login and sonar.password properties to the credentials of a user that is:

  • System administrator
  • And project administrator on the project that is being analyzed
Example:
sonar-runner -Dsonar.login=admin -Dsonar.password=admin