Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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 the analysis does not stop, ; it will go to the end. Only the status of the build will report failure.

This feature enables to allows you benefit from notification the notifications built in into CI engines.

Example of logs:

Code Block
languagenone
[ERROR] Coverage < 50%
[ERROR] Class complexity > 20
[INFO]  ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]  ------------------------------------------------------------------------
[INFO]  Can not execute Sonar

Embedded error: Alert thresholds are hit (2).

Include Page
Include - Plugin Installation
Include - Plugin Installation

...

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 so that it is off by default but on for individual projects.

Property The property 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.buildbreaker.forbidden.conf to sonar.gallio.mode=skip, each analysis on .Net projects that would be executed with Gallio skipped would be marked "broken".

Change Log

JIRA Issues
anonymoustrue
titleRelease 1.1
height70
renderModestatic
width900
columnstype;key;summary;priority;resolution;status
urlhttp://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=18620&pid=11911&sorter/field=issuekey&sorter/order=DESC&tempMax=1000

...