Sonarqube Jenkins集成报错,没有进行分析

Sonarqube Jenkins integration error, no analysis has been performed

我正在尝试将 Sonar 分析集成到我的 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

但是当我转到 Sonar 仪表板时,我得到的只有这个。

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

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

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

使用的版本:Sonar plugin 2.6.1,Sonarqube server 6.3.1,Sonarqube Scanner 3.0.3.778。 , 詹金斯 2.59

谢谢, 彼得

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