2017-08-02 34 views
0

在SonarQube中分析我的代碼時,我在下面看到錯誤日誌。SonarQube中的C#插件錯誤

SonarQube版本5.1.1 - LGPL V3

聲納CSHARP-插件-4.5.jar

SonarQube掃描儀爲的MSBuild 2.1

的MSBuild 12.0

我不能升級我的Sonarqube版本到最新的一個由於項目依賴關係。將C#插件從4.5 jar更改爲5.1 jar,但仍然沒有運氣。請建議。

錯誤日誌 -

SonarQube Scanner for MSBuild 2.1 
Default properties file was found at C:\Jenkins\tools\hudson.plugins.sonar.MsBuildSQRunnerInstallation\SonarQube_Scanner\SonarQube.Analysis.xml 
Loading analysis properties from C:\Jenkins\tools\hudson.plugins.sonar.MsBuildSQRunnerInstallation\SonarQube_Scanner\SonarQube.Analysis.xml 
Pre-processing started. 
Preparing working directories... 
Checking for updates... 
Could not connect to the SonarQube server. Check the url is correct and that the server is available. Url: http://example-software.com/ 
Failed to update the SonarQube Scanner for MSBuild binaries. Check the server url, verify that the C# plugin is correctly installed on the SonarQube server and that the SonarQube server has been restarted. 
Pre-processing failed. Exit code: 1 
Set build name. 

enter image description here

回答

0

的錯誤信息是很清楚的:

無法連接到服務器SonarQube。檢查網址是否正確以及服務器是否可用。網址:http://example-software.com/

您需要檢查您的sonar.host值並確保它是正確的。如果是這樣,那麼您需要與網絡人員交談,以確保您的分析儀可以與SonarQube服務器通話。