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 :
- copy the JAR file in the directory /extensions/plugins
- restart Sonar server
- Define alert thresholds in the Quality profile of your project
- Execute code analysis
By default this plugin is active on all projects. If you want a more elaborate behavior, skip this execution on some projects and run the plugin on other projects, you can use configuration property sonar.buildbreaker.skip .
sonar.buildbreaker.skip can be set globally or at project level. Its type is boolean, the default value being false.
Release 1.0 (1 issues)