Generating sonar report for 5.2 - sonarqube

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.

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.

Related

SonarQube Specific Build and Report Generation

I am currently using SonarQube Enterprise Edition - Version 8.7.
Is there an option to somehow get a specific sonar report as opposed to just "latest"?
And is it possible to have scan or SAST reports generated/exported in pdf or html format?
For audit reasons, it would be nice to get a link or report that's specific for the codebase at that snapshot in time.
Any ideas?
You can get the aggregated details of projects using:
Portfolio
Application

Sonar Qube report generation either as csv,xml or pdf

I'm using sonarqube-7.3 version. I want to make report from sonarqube either as csv, xml or pdf. I have googled it and found that we can make pdf report using sonar-pdfreport-plugin. I have dowload the version sonar-pdfreport-plugin-1.4 and pasted it in the extension/pluggin folder. But I can't restart the server. Anyone please provide a solution for getting report for the version provided above.
In general, SonarQube is not meant to be used as some reporting tool, but more as part of CI pipeline and users can use it's UI to manage code quality issues.
However, PDF reporting is available in the commercial Enterprise Edition of SonarQube for portfolios (groups of projects) as part of Governance. You can find details here https://www.sonarsource.com/plans-and-pricing/enterprise/
The plugin you are mentioning is most likely not updated for the 7.3 version

Integrated JaCoCo results in SonarQube using Jenkins Maven Multitarget-App

after fighting now with integrating JaCoCo results into my SonarQube to see code coverage for more then one working day, I will try to open another post regarding this topic, because the internet is really messed with postings.
Preconditions:
SonarQube: Version 6.7.2
Maven: 3.5.2
Windows Server2012 R2
I successfully integrated Sonar Scan and results are published. I added the configuration for JaCoCo in the pom.xml of my application and the result files are generated after the build and just using the JaCoCo Jenkins plugin they can be displayed on the Jenkins dashboard. But I did not figure out what Analysis properties the Jenkins action "Execute SonarQube Scanner" needs in order to import the results and display them.
Is "scan" the correct operation or do I need something else to trigger the import?
I saw so many variantes of giving JaCoCo and Sonar the correct parameters, that I do not have a clear picture any more. Any hints maybe looking at my parameters?
As described in the docs, since you're building with Maven you should analyze with it too. There's some global setup you want to do (see the docs) but once that's done, you'll add this to your job instead of your current SonarQube Scanner build step:
$SONAR_MAVEN_GOAL -Dsonar.host.url=$SONAR_HOST_URL
Note that this needs to come after your build and test execution. The JaCoCo reports should be picked up automatically.
I successfully integrated it now with these Analyses properties and it is working.
sonar.projectName=
sonar.projectKey=
sonar.login =
sonar.password =
sonar.sources=./
sonar.java.binaries=./
sonar.jacoco.reportPaths=./trackingboard-service/target/jacoco.exec
sonar.jacoco.reportMissing.force.zero=true

Trend, Environment and Executors tabs fails to show any data in Allure2 reports

I have been using Allure1 with Cucumber-Ruby-Appium framework and the reports generated by Allure1 are great. Now Allure has released Allure2 and I have successfully upgraded to this new Allure2 version. Reports are successfully generated in Allure2 new UI.
I see new tabs like Trend, Environment and Executors on the Allure2 dashboard's 'Overview' page. However no data is being reflected in these tabs. Could anyone kindly guide me how can I populate data in these tabs.
I have searched through the allure docs, but nothing has been mentioned on how to achieve this. Any guidance on this would be highly appreciated
To get history data in the report you need to use one of Allure CI plugins (at the moment supported Jenkins, Teamcity and Bamboo) to generate the report.

sonar 4.3: How to push xml output to sonar dashboard

We have written on tool to do some certain quality check on code. Now we want to integrate that tool to sonar and push the result on sonar dashboard.
Just wanted to know how to do it. Let's say my tool output is in xml format.
You may want to have a look at the Sonar .NET Tests library as a reference. It imports generated coverage reports in XML format into SonarQube. A possible starting point is this class:
https://github.com/SonarCommunity/sonar-dotnet-tests-library/blob/master/src/main/java/org/sonar/plugins/dotnet/tests/CoverageAggregator.java

Resources