Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Compatibility Matrix

Plugin

1.1.2

1.2

SonarSonarQubeTM

2.2+

3.0+

Bamboo

(tick)

(tick)

Jenkins

(minus)

(tick)

Hudson

(tick)

(tick)

TeamCity

(minus)

(minus)

...

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

Installation

  1. Install the Build Stability plugin through the Update Center or download it into the SONARSONARQUBE_HOME/extensions/plugins directory
  2. Restart the Sonar SonarQubeTM server

Usage

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

...

Code Block
xml,titlepom.xml
languagenone
<ciManagement>
  <system>Jenkins</system>
  <url>https://sonarplugins.ci.cloudbees.com/job/build-stability/</url>
</ciManagement>

 

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

Note
titleSecurity note for Sonar 3.4+

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

...