Full documentation for SonarQube has moved to a new location: http://docs.sonarqube.org/display/SONAR

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{iframe:src=http://update.sonarsource.org/plugins/buildbreaker-confluence.html|width=700|height=250350|frameborder=0}
Your browser does not support iframes.
{iframe}

...

This plugin will mark the build failed if any alerts are raised during analysis. Alerts are simple boolean thresholds defined in quality profiles, for example "coverage < 50%", "new blocker issues > 0"the project fails its quality gate. It is to be noted that the analysis does not stop when alerts are raisedif the quality gate fails; it continues successfully to the end. But the build status will report failure.

This plugin allows you benefit from the notifications built 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

Usage

  1. Define some alert thresholds in the quality profile of Associate a quality gate to your project
  2. Run a quality analysis on your project

...

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 the sonar.buildbreaker.forbidden.conf property to sonar.gallio.mode=skip, each analysis on .Net NET projects 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

 

JIRA Issues
anonymoustrue
titleRelease 1.0
height70
renderModestatic
width900
columnstype;key;summary;priority
urlhttp://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
anonymoustrue
titleRelease 0.1
renderModestatic
width900
columnstype;key;summary;priority
urlhttp://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=15589&pid=11911&sorter/field=issuekey&sorter/order=DESC&tempMax=1000