【发布时间】:2017-08-27 21:56:03
【问题描述】:
我使用 SonarQube 6.2 和 SonarQube.Runner 2.2.0.24。我想分析一个关于 TFS Git 的项目。但是,我收到错误消息:
[错误]错误:无法对不在映射的 TFS 工作区中的以下文件进行 TFS 注释: C:/Agent/_work/13/s/source/Services/Common/AddNewPerson_CommonApplicationService.cs 缺少以下文件的责备信息:...[文件列表]
我用这个命令行调用 SonarQube 扫描仪:
C:\Program Files\SonarQube\MSBuild.SonarQube.Runner-2.2.0.24\SonarQube.Scanner.MSBuild.exe" begin /k:FrontDesk /n:FrontDesk /v:4.0.70 /d:sonar.cs.vscoveragexml.reportsPaths=c:\Temp\Frontdesk.coveragexml /d:sonar.scm.enabled=true /d:sonar.scm.provider=tfvc /d:sonar.tfvc.username=[tfsbuilduser] /d:sonar.tfvc.password.secured=[tfsbuildpassword]
要结束分析,我有命令
"C:\Program Files\SonarQube\MSBuild.SonarQube.Runner-2.2.0.24\SonarQube.Scanner.MSBuild.exe" end
报告丢失的文件位于构建服务器上指示的路径上。
我需要如何配置此项目以使其适用于 TFS Git?
【问题讨论】:
-
您使用的是哪个 tfs 版本? XAML 或 vNext 构建?你的详细 TFS 版本是什么?
-
这是基于 TFS 2015 的 vNext 构建。