无法找到代码覆盖命令行工具,MSBuild与SonarQube

时间:2017-03-24 06:20:15

标签: sonarqube-msbuild-runner sonarqube5.3

从构建定义触发一次构建时出现以下错误。

3:46:16 AM  Failed to locate the code coverage command line tool Post-processing failed. Exit code: 1
Exception Message: TF270015: 'MSBuild.SonarQube.Runner.exe' returned an unexpected exit code. Expected '0'; actual '1'. See the build logs for more details. (type UnexpectedExitCodeException)
Exception Stack Trace:
   at System.Activities.Statements.Throw.Execute(CodeActivityContext context)
   at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
   at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

我正在使用安装在构建服务器中的SonarQube 5.3。我在构建服务器中安装了.net框架而不是visual studio。

BuildDefinition我在哪里引用SonarQube。

请帮帮我!!!!

1 个答案:

答案 0 :(得分:0)

代码覆盖率工具与Visual Studio一起安装而不是.Net Framework,因此如果您需要代码覆盖,则需要在构建代理上安装VS. 根据您使用的Visual Studio版本,您可能不需要构建代理的其他许可证。请参阅讨论Is a separate Visual Studio license required for a build machine?了解更多详情。