Code Coverage report is not getting uploaded on sonarqube server

I am executing this command

[Step 8/14] Starting: C:\Program Files\Zulu\zulu-21\bin\java.exe -classpath E:\BuildAgent\tools\sonar-qube-scanner.4.2.0.1873-scanner\lib\sonar-scanner-cli-4.2.0.1873.jar org.sonarsource.scanner.cli.Main "-Dproject.home=." "-Dsonar.host.url=*" "-Dsonar.projectKey=VAR-MDO-ARIACOREAutomations" "-Dsonar.projectName=VAR-MDO-ARIACOREAutomations" "-Dsonar.projectVersion=1.0.0.31" "-Dsonar.sources=E:\BuildAgent\work" "-Dsonar.login=****" -Dsonar.exclusions=**/*.sql,**/node_modules/**,**/bin/** -Dsonar.coverage.jacoco.xmlReportPaths=build/reports/jacoco/test/jacocoTestReport.xml "-Dscanner.home=E:\BuildAgent\tools\sonar-qube-scanner.4.2.0.1873-scanner"

Below is the logs :

[Step 8/14] INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
[08:22:00] :	 [Step 8/14] INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
[08:22:00] :	 [Step 8/14] INFO: Sensor JaCoCo XML Report Importer 

please suggest how will i get code coverage uploaded on sonarqube

Hi,

Welcome to the community!

First, that’s a rather odd way to run the scanner. The scanner should be in your %PATH% and you should only need to invoke it - directly. Second, that’s a rather old version of the scanner. The current version is 7.1. Third, what language are we talking about? If it’s Java or some other JVM language, you should be using the scanner that correlates to yoru build method, either the SonarScanner for Gradle or the SonarScanner for Maven. And if not’s not a JVM language, then JaCoCo likely isn’t supported.

 
Ann