SonarQube 7.9.3 not showing Gradle project coverage after upgrading from 6.7.7

Hello Everyone,
We are currently using Sonarqube-6.7.7 and both maven, gradle projects show coverage in SonarQube Project dashboard. we are planning to upgrade to 7.9.3 and did the setup in dev environment. Maven projects show the coverage but gradle projects is showing 0.0% coverage. Builds ran fine but showing 0.0% coverage.
Attached are the build.gradle config, jenkins build log for sonarqube task and folder structure for test reports.

gradle-config.txt (1.8 KB)
gradle-build-log.txt (1.9 KB)


Welcome to the community!

This line from your log seems relevant:

Cobertura report not found at /cma/jenkins/workspace/SCPC/SNQ/DEV/Infrastructure/Test-SonarQube-Gradle-New/ct1/target/site/cobertura/coverage.xml


Hi Ann, Thank you for the response.
I see the same message even for successful builds for 6.7.7. version.
we are running the same gradle setup for both 6.7.7. and 7.9.3 versions.
we are using Java 8 for gradle builds.
Coverage is showing on 6.7.7 but not for 7.9.3.

Attached are the coverage reports from both instances and build logs.

gradle-build-log.txt (1.9 KB)
gradle-build-log-6.7.7.txt (1.6 KB)

Thanks & Regards,

Hi Vamsi,

Okay, then this is probably about the fact that the JaCoCo .exec format is no longer supported. You’ll need to generate and import XML reports now.


Hi Ann, we are not using Jacoco.exec format. we are using XML reports only. please find the sonarqube configuration from build.gradle below.

sonarqube {
properties {
property “sonar.projectName”,
property “sonar.projectDescription”,
property “sonar.projectVersion”, “{archiveVersion}" property "sonar.language", "java" property "sonar.junit.reportsPath", "{buildDir}/reports”
property “”, “jacoco”
// property “sonar.jacoco.reportPath”, “{buildDir}/jacoco/test.exec" // Note this property has been deprecated, you should use the sonar.coverage.jacoco.xmlReportPaths property below instead property "sonar.coverage.jacoco.xmlReportPaths", "{buildDir}classes/java/test/com/comerica/ws/test/jacocoTestReport.xml”
property “sonar.binaries”, “${buildDir}/classes”
property “sonar.sourceEncoding”, “UTF-8”
property “”, “XXXXXXX”
property “sonar.exclusions”, “/reports/
property “sonar.dynamicAnalysis”, “reuseReports”

Let me know for any questions.

Thanks & Regards,

Hi Vamsi,

It looks like you’ll have to get more detailed analysis logs out of Gradle to see what’s going on.