which versions are you using (SonarQube 9.9.0-Enterprise)
how is SonarQube deployed: Docker
what are you trying to achieve
Basic analysis of java project with gradle-plugin
what have you tried so far to achieve this
Set location of jacoco coverage report, using sonar.coverage.jacoco.xmlReportPaths='build/reports/jacoco/test/jacocoTestReport.xml set on command-line.
Analysis log attached showing error message and portion of XML file. It appears the XML contains no line breaks, suggesting the “smoking gun.”
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)! missing_coverage_report.txt (1.5 KB)
XML doesn’t (necessarily) need linebreaks. If there’re in there, they’re for the reading comfort of us humans.
The error
No coverage report can be found with sonar.coverage.jacoco.xmlReportPaths='build/reports/jacoco/test/jacocoTestReport.xml'.
Is telling you that analysis didn’t find your report at the location you specified. This is more than likely a question of pathing. Does the path start from the directory where analysis is kicked off? In other words, from where analysis starts, can you cd directly into build/reports/...?
From the log file I uploaded: build/reports/jacoco/test/jacocoTestReport.xml
(The workspace was no longer there, so I could not provide an actual file directory listing.)