Description / Features
This plugin will mark the build failed if any alerts are raised during analysis. Alerts are simple boolean thresholds defined in quality profiles, for example "coverage < 50%", "new blocker issues > 0". It is to be noted that the analysis does not stop when alerts are raised; it continues successfully to the end. But the build status will report failure.
This plugin allows you benefit from the notifications built into CI engines.
Example of logs:
- Install the plugin through the Update Center or download it into the SONARQUBE_HOME/extensions/plugins directory
- Restart the SonarQube server
- Define some alert thresholds in the quality profile of your project
- Run a quality analysis on your project
By default this plugin is active on every project. But you can skip its execution on some of them by setting the
sonar.buildbreaker.skip property to
true at the project level. This property can also be set globally, so that it is off by default, but on for individual projects.
sonar.buildbreaker.forbidden.conf can be used to specify configurations that would break the build. For example, if you set in SonarQube administration GUI property
sonar.gallio.mode=skip, each analysis on .Net projects executed with Gallio skipped would be marked "broken".
Release 1.1 (5 issues)
|SONARPLUGINS-2543||Change message when build breaker is breaking the build||Fixed||Closed|
|SONARPLUGINS-2451||Break the build if some configuration parameters are used||Fixed||Closed|
|SONARPLUGINS-2360||Upgrade to Sonar 3.0 API||Fixed||Closed|
|SONARPLUGINS-2002||Fix URL for Update Center||Fixed||Closed|
|SONARPLUGINS-1158||Ability to turn on or off the build breaker depending on the project||Fixed||Closed|