Must-share information (formatted with Markdown):
-
which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
- Currently testing the logic Locally using Community Edition Version 9.6.1 (build 59531)
-
what are you trying to achieve
- We have NodeJs based integration tests ( run in circleCI) that calls java app on remote server.
- We have installed jacoco agent on the server and are able to generate jacoco.exec and xml report after integration tests are done using jacoco cli.
- However once the report in xml is created, we are not able to figure out how to send to sonar.
-
what have you tried so far to achieve this
- Locally I have tried this. My goal is that sonar should just pickup the xml from path
Dsonar.coverage.jacoco.xmlReportPaths
and send to sonar. However it anaylyzes the project and sends a usage data per that analysis ignoring the supplied xml path
- Locally I have tried this. My goal is that sonar should just pickup the xml from path
mvn sonar:sonar -f "pom.xml" \
-Dsonar.login=admin \
-Dsonar.password=admin1 \
-Dsonar.projectKey=col6 \
-Dsonar.coverage.jacoco.xmlReportPaths="/path/to/pre-existing-report/jacoco-report.xml"