Generates reports based on information about builds from Continuous Integration System.
Plugin | 1.1.2 | 1.2 | 1.3 |
SonarQube | 2.2+ | 3.0+ | 4.5.2+ |
Bamboo | ✅ | ✅ | ✅ |
Jenkins | 🔴 | ✅ | ✅ |
Hudson | ✅ | ✅ | 🔴 |
TeamCity | 🔴 | 🔴 | ✅ |
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.
- TeamCity build number format has to be configured so that build numbers are valid integers (%build.counter%)