【问题标题】:Sonarqube Jenkins integration error, no analysis has been performedSonarqube Jenkins 集成错误,未进行任何分析
【发布时间】:2017-10-19 13:43:48
【问题描述】:

我正在尝试将声纳分析集成到我的 Jenkins 中。我已经设置了一个多模块配置,并且我认为根据 jenkins 构建日志,分析运行正常。

INFO: Analysis report generated in 234ms, dir size=774 KB
INFO: Analysis reports compressed in 94ms, zip size=199 KB
INFO: Analysis report uploaded in 74ms
INFO: ANALYSIS SUCCESSFUL, you can browse 
http://localhost:9000/dashboard/index/perso
INFO: Note that you will be able to access the updated dashboard once the 
server has processed the submitted analysis report
INFO: More about the report processing at http://localhost:9000/api/ce/task?
id=AVwVnhRax2vtJSkdxag8
INFO: Task total time: 9.919 s
INFO: ---------------------------------------------------------------------
INFO: EXECUTION SUCCESS

但是当我前往声纳仪表板时,我得到的只是这个。

No analysis has been performed since creation. The only available section is the configuration.

我查看了 Sonar 日志,其中显示了错误,但遗憾的是我无法基于此解决问题。 错误:https://pastebin.com/N50RhBT3

最后的原因是 SSL 连接异常,但既然两个服务器都在本地运行,为什么会有 SSL?

使用的版本:Sonar 插件 2.6.1、Sonarqube 服务器 6.3.1、Sonarqube Scanner 3.0.3.778。 , 詹金斯 2.59

谢谢, 彼得

【问题讨论】:

  • 那个错误在服务器日志中?后台任务处理日志呢?
  • 你能给我指出日志文件吗?以上来自sonar\logs\ce.log
  • 我从仪表板打开了日志,如下所示docs.sonarqube.org/display/SONAR/Background+Tasks。它显示相同的错误。
  • 还要检查 sonar\logs\sonar.log
  • 过程中没有更新。最后一行是 -- INFO app[][o.s.application.App] SonarQube is up

标签: jenkins sonarqube sonarqube-ops


【解决方案1】:

原来这基本上是一个 java not found 错误。由于一个恼人的 Jenkins 错误,以前我不得不重新安装 Java。此更改仅部分通过 sonarqube,并导致上述错误。解决方案是使用包装器配置文件将声纳指向那个 java_home。

【讨论】:

    猜你喜欢
    • 2019-02-23
    • 2020-12-15
    • 2016-01-27
    • 2018-01-08
    • 1970-01-01
    • 2015-07-07
    • 2016-09-13
    • 2017-09-27
    • 2013-09-13
    相关资源
    最近更新 更多