Trying to make use of existing Jenkins plugin “SonarQube Scanner for Jenkins” to push the jacoco coverage report to the sonar server. Snapshot of the sonar.properties:
sonar.projectKey= **
sonar.test.inclusions=**/test/**
sonar.java.binaries=**/classes/**
sonar.java.libraries=**
sonar.coverage.exclusions=**/*.html,**/*.css,**/*.png,**/*.jpg,**/*.JPG,**/io/ionic*,**/io/ionic**,**/io/ionic**/*.java,**/org/*,**/org/**,**/org/**/*.java,**/cordova/*,**/cordova/**,**/cordova/**/*.java,**/android/*,**/android/**,**/android/**/*.java,**/apache/commons/**
sonar.coverage.jacoco.xmlReportPaths={module path}/build/reports/jacoco/test/jacocoTestReport.xml
sonar.dependencyCheck.htmlReportPath={module path}/build/reports/dependency-check-report.html
Now, this works fine and upload the coverage to the local sonarqube server but the same config doesn’t work when run from Jenkins to push.
Had a look at the Jenkins logs but it doesn’t have any error. However, it successfully uploads the Dependenc check report to the error.
- versions(SonarQube - CE 8.3.1 and Sonarqube scanner for Jenkins - 2.11
Any help here would be highly appreciated!
Thanks in advance