- Project: Java 1.8.0_212
- Springboot: 2.1.6.RELEASE
- Sonarqube server: 6.7.6
- Sonarqube plugin: 2.8
- Jacoco plugin: 0.8.5
I want to use the Jacoco plugin instead of the Cobertura plugin. I try to force this with the “sonar.java.coveragePlugin=jacoco” property but looking at the logs it says that it’s looking for the Cobertura report.
I have a Jenkins pipeline that calls a script which runs the following command:
./gradlew sonarqube
-Dsonar.host.url=$sonarHostUrl
-Dsonar.language=java
-Dsonar.login=$token
-Dsonar.projectKey=$projectName
-Dsonar.projectName=$projectName
-Dsonar.projectVersion=$appVersion
-Dsonar.java.coveragePlugin=jacoco
-Dsonar.coverage.jacoco.xmlReportPaths="./build/reports/jacoco/test/jacocoTestReport.xml"