繁体   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