首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >找不到MSBuild.SonarQube.Internal.PostProcess.exe

找不到MSBuild.SonarQube.Internal.PostProcess.exe
EN

Stack Overflow用户
提问于 2015-10-01 18:44:04
回答 2查看 712关注 0票数 2

当我将声纳主机从localhost更改为我的机器ip时,无法为ms build执行声纳运行。

已尝试在sonar.properties文件和sonarqube_analysis.xml中更改主机。

代码语言:javascript
复制
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

我执行的脚本

代码语言:javascript
复制
@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
EN

回答 2

Stack Overflow用户

发布于 2015-12-03 04:57:17

我今天遇到了这个问题。原来我错过了配置好的SonarQube.Analysis.xml。从本质上讲,它希望

代码语言:javascript
复制
<Property Name="sonar.host.url">http://{server}:9000/sonar</Property>

包括/sonar (来自服务器上sonar.properties的sonar.web.context设置)。

我在SonarQube.Analysis.xml中遗漏了/sonar,并且与您的症状完全相同。

票数 1
EN

Stack Overflow用户

发布于 2017-06-15 14:48:39

代码语言:javascript
复制
<Property Name="sonar.host.url">http://{server}:{Port}</Property>

在询问我的同事后,我发现url已经改变了,我改正了url,它成功地工作了。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32885568

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档