Code coverage report not publisged in sonarqube for a new project

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    Enterprise Edition Version 7.9.2 (build 30863)
  • what are you trying to achieve
    I have executed jacoco to generate code coverage xml file and i am trying to publish to a sonar project i had created. the report is not published
  • what have you tried so far to achieve this
    here is the command i used to publish it
    mvn sonar:sonar -Dsonar.coverage.jacoco.xmlReportPaths=/root/workspace/AutomationCodeCheck/target/site/jacoco/jacoco.xml -Dsonar.projectKey=xxxxx-qa-mvn -Dsonar.login=xxxxxxxxxxx -Dsonar.analysis.mode=publish -Dsonar.exclusions=pom.xml

i have attached console log that i got when executing the above command

sonar_consolelog.txt (8.0 KB)

Any thing that can help me achieve it will be great, as i am in time crunch


Hi RV,

Welcome to the community!

Try specifying the path to your coverage report not from box root, but from project root. So something like -Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml