cancel
Showing results for 
Search instead for 
Did you mean: 

Ant Sonar , failing the Build

cbelka
Participant
0 Kudos

I want to fail the (jenkins) build if there are too many errors in the Sonar Qube Report. Does anyone have a solution for that ?

Currently I am running the ant sonar target on the jenkins, but I have no clue how to mark the build as failed if some upper limits are hit. (Using Jenkins Log Analysier doesn't seem very reliable)

Best regards

Former Member

Accepted Solutions (1)

Accepted Solutions (1)

cbelka
Participant
0 Kudos

Ok , best solution is using the buildbreaker Sonar Plugin together with a quality gate configuration in sonarqube

Answers (0)