C# MSBuild.SonarQube.Runner.exe结束,后处理失败,退出代码1
我正在尝试使用MSbuild.SonarQube.Runner为SonarQube使用C#插件 SonarQube服务器-4.5.6 操作系统-Windows 32位计算机 数据库-MySQL 5.6.17 MSbuild.SonarQube.Runner-1.0.2 中提到的以下步骤 运行项目文件夹中的所有3个命令C# MSBuild.SonarQube.Runner.exe结束,后处理失败,退出代码1,c#,sonarqube,sonarqube-msbuild-runner,C#,Sonarqube,Sonarqube Msbuild Runner,我正在尝试使用MSbuild.SonarQube.Runner为SonarQube使用C#插件 SonarQube服务器-4.5.6 操作系统-Windows 32位计算机 数据库-MySQL 5.6.17 MSbuild.SonarQube.Runner-1.0.2 中提到的以下步骤 运行项目文件夹中的所有3个命令 初试 SonarQube.Analysis.xml文件内容 <?xml version="1.0" encoding="utf-8" ?> <SonarQubeA
<?xml version="1.0" encoding="utf-8" ?>
<SonarQubeAnalysisProperties xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.sonarsource.com/msbuild/integration/2015/1">
<Property Name="sonar.host.url">http://x.x.x.x:9000</Property>
<Property Name="sonar.login">userabc</Property>
<Property Name="sonar.password">1234</Property>
<!-- Required only for versions of SonarQube prior to 5.2 -->
<Property Name="sonar.jdbc.url">jdbc:mysql://x.x.x.x:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance</Property>
<Property Name="sonar.jdbc.username">sonar</Property>
<Property Name="sonar.jdbc.password">sonar</Property>
</SonarQubeAnalysisProperties>
<Property Name="sonar.jdbc.url">jdbc:mysql://x.x.x.x:3306/sonar?useUnicode=true</Property>
也很成功
第三指挥部
MSBuild.SonarQube.Runner.exe end
我的身体越来越虚弱
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
Total time: 2:02.225s
Final Memory: 11M/121M
INFO: ------------------------------------------------------------------------
Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
The sonar-runner did not complete successfully
16:36:59.242 Creating a summary markdown file...
Post-processing failed. Exit code: 1
后处理失败。退出代码:1
我错过了什么
另外,SonarQube.Analysis.xml中的属性
-sonar.jdbc.username和
-sonar.jdbc.password
为什么需要它们
提前感谢。MSBuild.SonarQube.Runner.exe错误地报告处理失败,因为写入错误流的有关MaxPermSize的警告
这是一个已知的问题,由
. 它应该在下一版本的SonarQube扫描仪中修复,用于MSBuild
解决方法是通过不设置MaxPermSize来删除警告。我犯了同样的错误。当我把它添加到
PATH
时,我写错了。或者,将MSBUILD
添加到路径
后,即使MSBUILD已移动到另一个文件夹,也会收到相同的错误。由于文件不是有效的XML,您的第一次尝试失败:sonar.jdbc.url值未正确转义。您的第三次尝试可能因问题而失败[.作为一种解决方法,请尝试不设置MaxPermSize。@duncanpMS感谢您的回复。我可以通过删除MaxPermSize成功运行步骤3。
但是我无法访问上面提到的Jira问题,因为我没有访问/登录Jira.sonarsource.com的权限。如果我正确设置了链接的格式,可能会有所帮助:您应该能够访问匿名访问它。
MSBuild.SonarQube.Runner.exe end
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
Total time: 2:02.225s
Final Memory: 11M/121M
INFO: ------------------------------------------------------------------------
Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
The sonar-runner did not complete successfully
16:36:59.242 Creating a summary markdown file...
Post-processing failed. Exit code: 1