Axel Fontaine
Axel Fontaine

Reputation: 35169

Sonar Maven plugin - fail the build on violation

Is there a way to configure Sonar or the Sonar Maven plugin to make a build fail when a violation of a certain priority (Blocker, Critical) is detected?

Upvotes: 6

Views: 3954

Answers (1)

Simon Brandhof
Simon Brandhof

Reputation: 5136

you have to define alert thresholds on the number of blocker/critical violations (>0 is your case) in quality profile and install the build breaker plugin (category "Integration" in Update Center of sonar 2.4).

Upvotes: 9

Related Questions