Search code examples
sonarqubesonar-runner

Generating sonar report for 5.2


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.


Solution

  • 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.