2017-05-19 41 views
0

我想聲納分析融入我的詹金斯。我已經建立了一個多模塊配置,我認爲這個分析是基於jenkins構建日誌運行的。Sonarqube詹金斯積分誤差,沒有分析已經完成

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?

二手版本:聲納插件2.6.1,Sonarqube服務器6.3.1,Sonarqube掃描儀3.0.3.778。 ,詹金斯2.59

感謝, 彼得

+0

該錯誤是在服務器日誌?後臺任務處理日誌呢? –

+0

你能指點我的日誌文件嗎?上述來自聲納\日誌\ ce.log –

+0

我打開日誌從dashnboard因爲它顯示這裏https://docs.sonarqube.org/display/SONAR/Background+Tasks。它顯示了同樣的錯誤。 –

回答

0

事實證明,這是基本錯誤未找到java的。由於Jenkins惱人的bug,以前我不得不重新安裝Java。這種改變只是部分經歷了sonarqube,並且導致了上述錯誤。該解決方案使用包裝器配置文件將sonar指向該java_home。