Command to publish Jacoco code coverage to sonar

I can see different maven configuration and commands to publish Jacoco coverage to Sonar but is there any command without maven, ant etc which can publish Jacoco coverage to Sonar?

I’ve a Jacoco coverage report file to publish.

Hey there.

Sure, a JaCoCo report can be passed to sonar.coverage.jacoco.xmlReportPaths when running a sonar-scanner command (and configuring your scan manually after the project has been built, unlike with the Maven/Gradle/Ant scanner).

What I think you’re asking is if there’s a way to upload a JaCoCo report after the scan is complete, and the answer is no. It must be passed with the rest of the analysis.