Skip to content

Latest commit

 

History

History
57 lines (48 loc) · 1.99 KB

README.md

File metadata and controls

57 lines (48 loc) · 1.99 KB

Build Stability Plugin

Build Status

Description / Features

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

Requirements

Plugin1.1.21.21.3
SonarQube2.2+3.0+4.5.2+
Bamboo
Jenkins🔴
Hudson🔴
TeamCity🔴🔴

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>

Example for TeamCity:

<ciManagement>
  <system>TeamCity</system>
  <url>http://teamcity:port/viewType.html?buildTypeId=SonarBuildStability_Install</url>
</ciManagement>

Non-Maven examples:

sonar.build-stability.url=Bamboo:${BAMBOO_URL}/browse/${PROJECT_KEY}
sonar.build-stability.url=Jenkins:${JENKINS_URL}/job/${JOB_NAME}
sonar.build-stability.url=TeamCity:${TEAMCITY_URL}/viewType.html?buildTypeId=${PROJECT_KEY}

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

Known limitations

  • TeamCity build number format has to be configured so that build numbers are valid integers (%build.counter%)