当我将声纳主机从localhost更改为我的机器ip时,无法为ms build执行声纳运行。
已尝试在sonar.properties文件和sonarqube_analysis.xml中更改主机。
c:\HID\project-test\PACS\sonar_opencover\Project>MSBuild.SonarQube.Runner.exe end
Default properties file was found at C:\HID\project-test\dotnet\MSBuild.SonarQube.Runner-1.0.1\SonarQube.Analysis.xml
Loading analysis properties from C:\HID\project-test\dotnet\MSBuild.SonarQube.Runner-1.0.1\SonarQube.Analysis.xml
Post-processing started.
Execution failed. The specified executable does not exist: c:\HID\project-test\PACS\sonar_opencover\Project\.sonarqube\bin\MSBuild.SonarQube.Internal.PostProcess.exe
Post-processing failed. Exit code: 1我执行的脚本
@call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd.bat"
MSBuild.SonarQube.Runner.exe begin /k:"jenkins_test5" /n:"jenkins_test5" /v:"1.0" /d:sonar.cs.opencover.reportsPaths="%CD%\opencover.xml"
msbuild.exe
"C:\HID\project-test\PACS\sonar_opencover\opencover.4.6.210\OpenCover.Console.exe" -output:"%CD%\opencover.xml" -register:user -target:"vstest.console.exe" -targetargs:"UnitTestProject1\bin\Debug\UnitTestProject1.dll"
MSBuild.SonarQube.Runner.exe end发布于 2015-12-03 04:57:17
我今天遇到了这个问题。原来我错过了配置好的SonarQube.Analysis.xml。从本质上讲,它希望
<Property Name="sonar.host.url">http://{server}:9000/sonar</Property>包括/sonar (来自服务器上sonar.properties的sonar.web.context设置)。
我在SonarQube.Analysis.xml中遗漏了/sonar,并且与您的症状完全相同。
发布于 2017-06-15 14:48:39
<Property Name="sonar.host.url">http://{server}:{Port}</Property>在询问我的同事后,我发现url已经改变了,我改正了url,它成功地工作了。
https://stackoverflow.com/questions/32885568
复制相似问题