Description / Features
This plugin will make the build report as failed if at least one alert is raised during analysis. Thresholds for alerts are defined in quality profiles, for example "coverage < 50%". It is to be noted that analysis does not stop, it will go to the end. Only the status of the build will report failure.
This feature enables to benefit from notification built in CI engines.
Example of logs:
Installation
- Install the Build Breaker plugin through the Update Center or download it into the SONAR_HOME/extensions/plugins directory
- Restart the Sonar server
Usage
- Define some alert thresholds in the quality profile of your project
- Run a Sonar analysis on your project
Advanced Usage
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 project level. This property can also be set at instance level.
Property sonar.buildbreaker.forbidden.conf can be used to specify configurations that would break the build. For example, if you set in sonar administration GUI property sonar.buildbreaker.forbidden.conf to "sonar.gallio.mode=skip", each analysis on .net projects that would be executed with gallio skipped would be "broken"
Change Log
| Release 1.1 (5 issues) | |||||
|---|---|---|---|---|---|
| Type | Key | Summary | Priority | Resolution | Status |
|
|
SONARPLUGINS-2543 | Change message when build breaker is breaking the build |
|
Fixed |
|
|
|
SONARPLUGINS-2451 | Break the build if some configuration parameters are used |
|
Fixed |
|
|
|
SONARPLUGINS-2360 | Upgrade to Sonar 3.0 API |
|
Fixed |
|
|
|
SONARPLUGINS-2002 | Fix URL for Update Center |
|
Fixed |
|
|
|
SONARPLUGINS-1158 | Ability to turn on or off the build breaker depending on the project |
|
Fixed |
|
| Release 1.0 (1 issues) | |||
|---|---|---|---|
| Type | Key | Summary | Priority |
|
|
SONARPLUGINS-760 | Use sonar-plugin packaging |
|
| Release 0.1 (1 issues) | |||
|---|---|---|---|
| Type | Key | Summary | Priority |
|
|
SONARPLUGINS-186 | Initial version |
|

