0
votes

I am trying to integrate Sonar in Jenkins. Due to some bad code quality - it is giving below error.

"ERROR: Error during SonarQube Scanner execution java.lang.IllegalStateException: Project does not pass the quality gate."

I do not have permission to change the quality gate right now. I want to make the build success irrespective of quality gate result. How to do it?

1

1 Answers

3
votes

Seems that you have installed https://github.com/SonarQubeCommunity/sonar-build-breaker So either uninstall it, either try to set sonar.buildbreaker.skip=true. Also note that SonarQube developers do not recommend to break the build - http://www.sonarqube.org/why-you-shouldnt-use-build-breaker/