| Wiki Markup |
|---|
{iframe:src=http://update.sonarsource.org/plugins/buildbreaker.html|width=700|height=250|frameborder=0}
Your browser does not support iframes.
{iframe} |
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 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.
...
Example of logs:
| Code Block | ||
|---|---|---|
| ||
[ERROR] Coverage < 50% [ERROR] Class complexity > 20 [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Can not execute Sonar Embedded error: Alert thresholds are hit (2). |
Installation
- copy the JAR file in the directory Install the plugin through the Update Center or download it into the SONARQUBE_HOME/extensions/plugins restart Sonar plugins directory
- Restart the SonarQube server
Usage
- Define some alert thresholds in the Quality quality profile of your project
- Execute code analysis
...
- Run a quality analysis on your project
Advanced Usage
By default this plugin is active on all projectsevery project. 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 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.skipforbidden.conf can be set globally or at project level. Its type is boolean, the default value being false.
...
used to specify configurations that would break the build. For example, if you set in SonarQube 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
| JIRA Issues | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| JIRA Issues | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
| JIRA Issues | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|

