声纳库和 NDepend?如何在 TFS 构建期间从 NDepend 获取数据?
Sonarqube and NDepend? How to get data from NDepend during a build in TFS?
我在安装了 NDepend 的控制器中构建了 TFS 2013 运行。我们的 sonarqube 实例安装了 NDepend 插件。
从构建中我将其设置为 运行 sonarqube 运行ner MSBuild.SonarQube.Runner.exe 使用这些参数:
begin /k:Test /n:"Test" /v:1.0 /d:sonar.cs.ndepend.projectPath="C:\TMP\TEST.ndproj" /d:sonar.cs.ndepend.reportPath="C:\TMP\ndepend-report.xml"
Caused by: org.sonar.api.utils.command.CommandException: NDepend
execution failed with exit code: -532462766 [command:
C:\tmp\NDepend_6.2.1.8630\Integration\SonarQube\NDepend.SonarQube.RuleRunner.exe
C:\TMP\TEST.ndproj
C:\TMP\ndepend-report.xml
所以在构建结束时我只能看到这条消息:
ERROR:
ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.
The SonarQube Scanner did not complete successfully
Post-processing failed. Exit code: 1
我怎样才能弄清楚它出了什么问题?如果我 运行 我的构建服务器中的命令使用 CMD window 它有效,但是 运行 来自 Sonarqube 运行ner 它失败了。
现在我开始工作了。
这是一个愚蠢的错误,我的构建服务控制器 运行 在服务帐户下,我需要先 运行 NDepend 在该帐户下激活它。
完成后,一切都按预期开始工作。
我在安装了 NDepend 的控制器中构建了 TFS 2013 运行。我们的 sonarqube 实例安装了 NDepend 插件。
从构建中我将其设置为 运行 sonarqube 运行ner MSBuild.SonarQube.Runner.exe 使用这些参数:
begin /k:Test /n:"Test" /v:1.0 /d:sonar.cs.ndepend.projectPath="C:\TMP\TEST.ndproj" /d:sonar.cs.ndepend.reportPath="C:\TMP\ndepend-report.xml"
Caused by: org.sonar.api.utils.command.CommandException: NDepend execution failed with exit code: -532462766 [command: C:\tmp\NDepend_6.2.1.8630\Integration\SonarQube\NDepend.SonarQube.RuleRunner.exe C:\TMP\TEST.ndproj C:\TMP\ndepend-report.xml
所以在构建结束时我只能看到这条消息:
ERROR:
ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.
The SonarQube Scanner did not complete successfully
Post-processing failed. Exit code: 1
我怎样才能弄清楚它出了什么问题?如果我 运行 我的构建服务器中的命令使用 CMD window 它有效,但是 运行 来自 Sonarqube 运行ner 它失败了。
现在我开始工作了。
这是一个愚蠢的错误,我的构建服务控制器 运行 在服务帐户下,我需要先 运行 NDepend 在该帐户下激活它。
完成后,一切都按预期开始工作。