【发布时间】:2018-05-19 17:58:30
【问题描述】:
目前在我们的 TFS 2017 构建的“完成 SonarQube 分析”步骤中出现以下错误:
2017-12-05T22:04:24.5437340Z ##[error]System.Management.Automation.CommandNotFoundException:术语“Get-TaskVariable”未被识别为 cmdlet、函数、脚本文件或可操作的名称程序。检查名称的拼写,或者如果包含路径,请验证路径是否正确并重试。
2017-12-05T22:04:24.5837397Z ##[error]System.Management.Automation.RuntimeException:找不到 MSBuild.SonarQube.Runner 可执行文件。检查构建定义是否包含 SonarQube Pre-Build 步骤 ---> System.Management.Automation.RuntimeException:找不到 MSBuild.SonarQube.Runner 可执行文件。检查构建定义是否包含 SonarQube Pre-Build 步骤
SonarQube 版本:6.7 版(内部版本 33306) 适用于 MSBuild 的 SonarQube 扫描仪版本:3.0.2
“准备 SonarQube 分析”步骤在 Visual Studio 构建步骤之前完成,没有错误。
【问题讨论】:
-
您在 TFS 构建定义中使用最新的 SonarQube 组件吗?