簡體   English   中英

SonarQube中的C#插件錯誤

[英]C# plugin error in SonarQube

在SonarQube中分析代碼時,我看到以下錯誤日志。

SonarQube版本5.1.1-LGPL V3

聲納CSHARP-插件-4.5.jar

用於MSBuild 2.1的SonarQube掃描儀

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.

在此處輸入圖片說明

錯誤消息非常清楚:

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

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM