TFS Build上缺少SonarLint.Runner.exe

时间:2017-02-10 12:29:50

标签: tfs sonarqube sonar-runner

有一段时间,我的构建过程中的SonarQube步骤失败了。错误告诉我

...
Caused by: java.io.IOException: Cannot run program "C:\TFS_Agents\_work\1\.********qube\out\.********\SonarLint.Runner\SonarLint.Runner.exe": CreateProcess error=2, The system cannot find the file specified
...

所以我检查了路径,除了SonarLint.Runner.exe之外,还有所有文件。甚至还有SonarLint.Runner.exe.config文件。 首先我们的BitDefender将.exe文件放入隔离区,但我们将其设置在白名单上,并且应该没问题。即使我们将BitDefender设置为关闭,它也会在构建过程中丢失,因此构建失败。

有没有人有此问题的行为?

1 个答案:

答案 0 :(得分:0)

不推荐使用的两个任务是SonarQube for MSBuild任务(SonarQube用于'MSBuild - 开始分析'和'SonarQube用于MSBuild - 结束分析')。您需要安装the SonarQube extension并使用库中的三个新任务:

enter image description here

有用的链接: