| 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
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 :
| 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 /extensions/plugins
- restart Sonar server
- Define alert thresholds in the Quality profile of your project
- Execute code analysis
Changelog
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 1.0 |
|---|
| height | 70 |
|---|
| width | 900 |
|---|
| columns | type;key;summary;priority;status;resolution |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=16909&pid=11911&sorter/field=issuekey&sorter/order=DESC&tempMax=1000 |
|---|
|
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 0.1 |
|---|
| height | 70 |
|---|
| width | 900 |
|---|
| columns | type;key;summary;priority;status;resolution |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=15589&pid=11911&sorter/field=issuekey&sorter/order=DESC&tempMax=1000 |
|---|
|