Added by Simon Brandhof, last edited by Simon Brandhof on Mar 10, 2010  (view change)

Labels:

Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.
Name
Build Breaker Plugin
Author
Simon Brandhof
JIRA
http://jira.codehaus.org/browse/SONARPLUGINS/component/14033
Download
0.1 (check version compatibility )
License
LGPL v3
Sources
http://svn.codehaus.org/sonar-plugins/trunk/build-breaker

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 :

[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. copy the JAR file in the directory /extensions/plugins 
  2. restart Sonar server
  3. Define alert thresholds in the Quality profile of your project
  4. Execute code analysis

Changelog