Hi All,
I am using SonarQube 7.9.4 and triggering a build in Jenkins. I am getting coverage as 0.
Below are Sonar Properties:
Project scanner properties:
- sonar.binaries=/data/jenkins-data/workspace/sonar_new_test/target/classes
- sonar.coverage.jacoco.xmlReportPaths=/data/jenkins-data/workspace/sonar_new_test/../target/jacoco.exec
- sonar.dynamicAnalysis=reuseReports
- sonar.groovy.binaries=/data/jenkins-data/workspace/sonar_new_test/target/classes
- sonar.host.url=https://sonarqube.pearson.com
- sonar.java.binaries=/data/jenkins-data/workspace/sonar_new_test/target/classes
- sonar.java.coveragePlugin=jacoco
- sonar.java.libraries=/var/lib/jenkins/.m2/repository/org/sonarsource/scanner/maven/sonar-maven-plugin/3.7.0.1746/sonar-maven-plugin-3.7.0.1746.jar,/var/lib/jenkins/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.4/plexus-sec-dispatcher-1.4.jar,/var/lib/jenkins/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar,/var/lib/jenkins/.m2/repository/org/codehaus/plexus/plexus-utils/3.2.1/plexus-utils-3.2.1.jar,/var/lib/jenkins/.m2/repository/org/sonarsource/scanner/api/sonar-scanner-api/2.14.0.2002/sonar-scanner-api-2.14.0.2002.jar,/var/lib/jenkins/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
- sonar.java.source=1.8
- sonar.java.target=1.8
- sonar.java.test.binaries=/data/jenkins-data/workspace/sonar_new_test/target/test-classes
- sonar.java.test.libraries=/data/jenkins-data/workspace/sonar_new_test/target/classes,/var/lib/jenkins/.m2/repository/junit/junit/4.13/junit-4.13.jar,/var/lib/jenkins/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar,/var/lib/jenkins/.m2/repository/org/sonarsource/scanner/maven/sonar-maven-plugin/3.7.0.1746/sonar-maven-plugin-3.7.0.1746.jar,/var/lib/jenkins/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.4/plexus-sec-dispatcher-1.4.jar,/var/lib/jenkins/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar,/var/lib/jenkins/.m2/repository/org/codehaus/plexus/plexus-utils/3.2.1/plexus-utils-3.2.1.jar,/var/lib/jenkins/.m2/repository/org/sonarsource/scanner/api/sonar-scanner-api/2.14.0.2002/sonar-scanner-api-2.14.0.2002.jar,/var/lib/jenkins/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
- sonar.junit.reportPaths=/data/jenkins-data/workspace/sonar_new_test/target/surefire-reports
- sonar.junit.reportsPath=/data/jenkins-data/workspace/sonar_new_test/target/surefire-reports
- sonar.language=java
- sonar.libraries=/var/lib/jenkins/.m2/repository/org/sonarsource/scanner/maven/sonar-maven-plugin/3.7.0.1746/sonar-maven-plugin-3.7.0.1746.jar,/var/lib/jenkins/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.4/plexus-sec-dispatcher-1.4.jar,/var/lib/jenkins/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar,/var/lib/jenkins/.m2/repository/org/codehaus/plexus/plexus-utils/3.2.1/plexus-utils-3.2.1.jar,/var/lib/jenkins/.m2/repository/org/sonarsource/scanner/api/sonar-scanner-api/2.14.0.2002/sonar-scanner-api-2.14.0.2002.jar,/var/lib/jenkins/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
- sonar.links.ci=
- sonar.links.homepage=
- sonar.links.issue=
- sonar.links.scm=
- sonar.links.scm_dev=
- sonar.login=******
- sonar.moduleKey=com.learning:jenkins
- sonar.password=******
- sonar.projectBaseDir=/data/jenkins-data/workspace/sonar_new_test
- sonar.projectBuildDir=/data/jenkins-data/workspace/sonar_new_test/target
- sonar.projectKey=com.learning:jenkins
- sonar.projectName=jenkins
- sonar.projectVersion=0.0.1-SNAPSHOT
- sonar.scanner.app=ScannerMaven
- sonar.scanner.appVersion=3.7.0.1746/3.6.3
- sonar.sourceEncoding=UTF-8
- sonar.sources=/data/jenkins-data/workspace/sonar_new_test/pom.xml,/data/jenkins-data/workspace/sonar_new_test/src/main/java
- sonar.tests=/data/jenkins-data/workspace/sonar_new_test/src/test/java
- sonar.verbose=true
- sonar.working.directory=/data/jenkins-data/workspace/sonar_new_test/target/sonar
Please let me know if I miss any thing. I will attach the debug logs if needed.
Please assist me.
Thanks.