我的要求是运行jenkins工作,调用声纳分析。 这是实现的。
现在我想要的只是生成PDF报告并通过电子邮件发送该报告。 经过分析,我遇到了“声纳报告插件”来实现这一目标。 根据以下文档,我需要运行“sonar-runner report”命令来实现所需的结果。 但对于声纳5.2批处理不再支持任务,因此上述命令无法执行,只运行“声纳 - 跑步”不会在指定的仪表板上生成PDF。
我所参考的文档是“ http://www.sonarsource.com/products/plugins/governance/report/installation-and-usage/ ”
请告知我该怎么做才能获得所需的结果。
My requirement is to run jenkins job that will invoke sonar analysis. This was achieved.
Now all I want is to generate a PDF report and send that report through email. On analysis, I came across "sonar-report-plugin" to achieve this. As per the below documentation, i need to run "sonar-runner report" command to achieve the desired result. but for sonar 5.2 Tasks are no more supported on batch side so the above command fails to execute and just running the "sonar-runner" does not generate the PDF on the specified dashboard.
The documentation i refereed to is "http://www.sonarsource.com/products/plugins/governance/report/installation-and-usage/"
please advise what can i do to get the required result.
最满意答案
PDF报告插件与SonarQube 5.2不兼容(请参阅插件版本矩阵和解决5.1问题的问题 ),并标记为已弃用(请参阅不推荐使用的插件 ):
PDF报告 - 从项目分析生成PDF报告。 请注意,报告不可配置,无法通过电子邮件发送,插件仅限于Java Maven项目。
The PDF Report plugin is not compatible with SonarQube 5.2 (see Plugin Version Matrix and issue to resolve problems with 5.1) and is marked as deprecated (see Deprecated Plugins):
PDF Report - Generates PDF report from project analysis. Note that report is not configurable and cannot be sent by email and the plugin is limited to Java Maven projects.
更多推荐
发布评论