Shilpika S. Khare
Shilpika S. Khare

Reputation: 11

SONARQUBE result analysis

Situation I have a jenkins server and a sonarqube server. I want if number of bugs reported in the current build by sonarqube are more than that of the previous build, my build should fail. Any suggestions?

Upvotes: 0

Views: 689

Answers (1)

ph8c4
ph8c4

Reputation: 96

This is what quality gates are for: http://docs.sonarqube.org/display/SONAR/Quality+Gates

You can define conditions that must be met, also in your case "no bugs on new code".

However I am not sure if you can feedback quality gate result to your Jenkins build since Sonarqube has some post processing happening once your Jenkins job is finished.

Upvotes: 1

Related Questions