Versions Compared

Key

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

...

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).

Installation

  1. Install the Build Breaker plugin through the Update Center or download it into the SONAR SONARQUBE_HOME/extensions/plugins directory
  2. Restart the Sonar SonarQubeTM server

Usage

  1. Define some alert thresholds in the quality profile of your project
  2. Run a Sonar quality 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 SonarQubeTM administration GUI property sonar.buildbreaker.forbidden.conf to "sonar.gallio.mode=skip", each analysis on .net Net projects that would be executed with gallio Gallio skipped would be "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

...