【问题标题】:SonarQube 6.0 with Sonar-Scanner-2.6.1 Cofinguration with MYSQLSonarQube 6.0 与 Sonar-Scanner-2.6.1 与 MYSQL 的协同作用
【发布时间】:2017-09-13 23:06:01
【问题描述】:

我将 SonarQube 5.1.2 与 Sonar-runner-dist 2.4 一起使用,但我必须将 SonarQube 与 Sonar-Scanner-2.6.1 一起升级到 6.0

我在 SonarQube 5.1.2 中使用 MySQL,但是当我升级到 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

我在下面提到了答案,但我没有得到解决问题的解决方案

https://stackoverflow.com/a/35231407/3973543

【问题讨论】:

    标签: sonarqube sonar-runner sonarqube-scan


    【解决方案1】:

    “警告:不再支持属性 'sonar.jdbc.url'”不是错误,只是警告,因为 5.6 sonar.jdbc.url、sonar.jdbc.username 和 sonar.jdbc.password 不是詹金斯方面不再需要了。 sonarqube 数据库只能从 sonarqube 实例访问,而不是从客户端作为 jenkins 访问。所以你现在应该让它们清空。只需填写 WS 连接的 sonarqube 实例 url。

    治理插件现已商业化,您必须注册许可证才能使用它

    【讨论】:

    • 当然我会试试这个什么是这里的 WS 连接
    • 顺便说一句,治理一直是商业化的。 :)
    • 请注意,在撰写本文时,Governance 插件尚不兼容 6.x 系列的 SonarQube。它应该被卸载。请联系 SonarSource 支持团队了解更多信息。
    • @SimonBrandhof-SonarSource@G。 Ann - SonarSource 团队你能告诉我什么是 WS 连接意味着如何设置是否有任何教程要遵循。
    • @Batman 在 jenkins 配置中你有一个“声纳”部分,你可以设置你的声纳安装(许多你想要的)你可以设置一个名称,..,以及声纳实例的 url可以到达。 jenkins 使用它作为网络服务流发布数据。
    猜你喜欢
    • 1970-01-01
    • 2022-11-23
    • 2017-09-18
    • 2017-01-21
    • 2019-03-14
    • 2017-09-01
    • 2019-08-17
    • 1970-01-01
    相关资源
    最近更新 更多