我正在使用新的 MSBuild SonarQube Runner v1.0 试用 SonarQube。如果我在本地安装新的 SonarQube 服务器,则以下命令可以正常工作,之后我可以直接构建我的解决方案,调用“end”命令,并将结果发布到 SonarQube:
MSBuild.SonarQube.Runner.exe begin /key:TestKey /name:TestName /version:1.0.0.0
但是,如果我对存在于内部网络上的现有 SonarQube 服务器运行它,它总是返回退出代码 1:
15:32:40 Creating config and output folders...
15:32:40 Creating directory: c:\Test\MSBuild.SonarQube.Runner-1.0.itsonar\.sonarqube\conf
15:32:40 Creating directory: c:\Test\MSBuild.SonarQube.Runner-1.0.itsonar\.sonarqube\out
15:32:41 Generating the FxCop ruleset: c:\Test\MSBuild.SonarQube.Runner-1.0.itsonar\.sonarqube\conf\SonarQubeFxCop-cs.ruleset
Process returned exit code 1
似乎将很多依赖项下载到 /.sonarqube 中,因此与服务器的通信不是问题
我尝试过的事情:
- 检查了 access.log、server.log 和事件日志
- 将现有服务器升级到 v5.1.2(使用指南进行全新安装)
- 将 sonar-csharp-plugin 升级到 v4.1
- 右键单击服务器上的所有 .jar 文件并确保它们未被阻止
- 直接在服务器上尝试了跑步者
- (进行中)尝试调试源代码(在预处理步骤中某处发生:
success
返回为true
,但错误代码为 1) - 在服务器上禁用 UAC 并重新启动
- 在服务器和客户端上重新安装 JRE,确保
JAVA_HOME
两者PATH
和注册表都设置正确
任何帮助或指针都被广泛接受。我已经坚持了 2 天,除了继续浏览源代码之外,我想不出任何其他尝试。谢谢你。