我使用SonarQube 5.1.2和Sonar-runner-dist 2.4,但我必须将SonarQube升级到6.0以及Sonar-Scanner-2.6.1
我正在使用MySQL for SonarQube 5.1.2但当我升级到SonarQube 6.0时,我收到此错误,有人可以帮助我如何覆盖错误以及SonarQube 6.0需要进行哪些更改
不确定我为什么
警告:财产' sonar.jdbc.username'不再支持。这将是无知的 编辑。 SQ数据库不再有任何数据库连接。
完成错误记录
WARN: sonar-runner.bat script is deprecated. Please use sonar-scanner.bat instea
d.
D:\Softwares\SonarQube_old\sonar-scanner-2.6.1\sonar-scanner-2.6.1
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
INFO: Scanner configuration file: D:\Softwares\SonarQube_old\sonar-scanner-2.6.1
\sonar-scanner-2.6.1\conf\sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: SonarQube Scanner 2.6.1
INFO: Java 1.8.0_111 Oracle Corporation (32-bit)
INFO: Windows 7 6.1 x86
INFO: User cache: C:\Users\391007\.sonar\cache
INFO: Load global repositories
INFO: Load global repositories (done) | time=124ms
WARN: Property 'sonar.jdbc.url' is not supported any more. It will be ignored. T
here is no longer any DB connection to the SQ database.
WARN: Property 'sonar.jdbc.username' is not supported any more. It will be ignor
ed. There is no longer any DB connection to the SQ database.
WARN: Property 'sonar.jdbc.password' is not supported any more. It will be ignor
ed. There is no longer any DB connection to the SQ database.
INFO: User cache: C:\Users\391007\.sonar\cache
INFO: Load plugins index
INFO: Load plugins index (done) | time=9ms
INFO: SonarQube server 6.0
INFO: Default locale: "en_US", source code encoding: "windows-1252" (analysis is
platform dependent)
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 2.553s
INFO: Final Memory: 40M/96M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarQube Scanner execution
ERROR: Unable to register extension com.sonar.governance.task.A.A from plugin 'g
overnance'
ERROR: Caused by: Lorg/sonar/batch/bootstrap/BatchWsClient;
ERROR: Caused by: org.sonar.batch.bootstrap.BatchWsClient
ERROR:
ERROR: To see the full stack trace of the errors, re-run SonarQube Scanner with
the -e switch.
ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging
我在下面提到了答案,但我没有得到解决问题的解决方案
答案 0 :(得分:1)
“警告:不再支持属性'sonar.jdbc.url'”不是错误,只是一个警告,因为5.6 sonar.jdbc.url,sonar.jdbc.username和sonar.jdbc.password不是在詹金斯方面需要了。 sonarqube DataBase只能从sonarqube实例访问,而不是作为jenkins从客户端访问。所以你现在应该让他们空着。只需填写声纳连接的sonarqube实例URL即可。
治理插件现已商业化,您必须注册使用许可证