问题
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:
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/
来源:https://stackoverflow.com/questions/40585615/jenkins-sonar-error-error-during-sonarqube-scanner-execution-java-lang-illeg