我试图将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.
我检查了声纳日志,它显示了错误,但遗憾的是我无法在此基础上解决问题。 错误:https://pastebin.com/N50RhBT3
最终原因是SSL连接异常,但由于两台服务器都在本地运行,为什么会有SSL?
已用版本:Sonar插件2.6.1,Sonarqube服务器6.3.1,Sonarqube Scanner 3.0.3.778。 ,詹金斯2.59
谢谢, 彼得
答案 0 :(得分:0)
原来这基本上是一个java not found错误。由于恼人的Jenkins bug,以前我不得不重新安装Java。这个变化只是部分地通过了sonarqube,它导致了上面的错误。解决方案是使用包装器配置文件将声纳指向java_home。