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

北城余情 提交于 2020-03-05 11:43:13

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!