Hi All,
We have around 26 projects, mostly Java based, analysed by SonarCloud; all are using the same configuration.
Configuration
-
spring boot
2.2.1.RELEASE
-
java 11
<java.version>11</java.version> <sonar.coverage.jacoco.xmlReportPaths>**/site/jacoco/jacoco.xml </sonar.coverage.jacoco.xmlReportPaths>
-
maven
<groupId>org.sonarsource.scanner.maven</groupId> <artifactId>sonar-maven-plugin</artifactId> <version>3.7.0.1746</version>
-
jacoco plugin
<groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.8.7</version>
-
gitlab pipeline
Problem
One of this project, after the upgrade to the new SonarCloud UI, got the code coverage showing 0%.
Jacoco report
The jacoco.xml is generated during pipeline and mentioned as imported.
[INFO] Sensor JaCoCo XML Report Importer [jacoco]
[INFO] Importing 1 report(s). Turn your logs in debug mode in order to see the exhaustive list.
[INFO] Sensor JaCoCo XML Report Importer [jacoco] (done) | time=28ms
I had to change extension to txt
to get it uploaded.
jacoco.txt (93.2 KB)
I have no clue on why this project is the only one that does not show a code coverage, I have made lines changes to classes but they are not shown in the New Lines
menu. Only lines changed on the pom.xml are shown, this is weird.
Hope someone can point me to the right direction.
Thanks in advance