jacoco report not found

50 views
Skip to first unread message

Pradeep Drall

unread,
Oct 30, 2018, 7:31:32 AM10/30/18
to Jenkins Users
I am using SonarQube with scanner, jenkins, maven, gradle and wants to display code coverage report in SonarQube. 

I am getting error "Jacoco report not found"

[INFO] Sensor JaCoCoSensor [java]
[INFO] JaCoCo report not found: 'E:\pradeep doc\sonarQube\javaproject\cucumberba
sic\target\jacoco.exec'
[INFO] JaCoCo UT report not found: 'E:\pradeep doc\sonarQube\javaproject\cucumbe
rbasic\target/jacoco-ut.exec'
[INFO] JaCoCo IT report not found: 'E:\pradeep doc\sonarQube\javaproject\cucumbe
rbasic\target/jacoco-it.exec'

// pom.xml
<!-- Sonar-JaCoCo properties -->
<sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
<sonar.jacoco.reportPaths>E:\pradeep doc\sonarQube\javaproject\cucumberbasic\target\jacoco.exec</sonar.jacoco.reportPaths>
<sonar.language>java</sonar.language>
</properties>

I mentioned below details in sonar-project.properties
sonar.java.binaries=.
sonar.sourceEncoding=UTF-8
sonar.language=java
sonar.verbose=true
sonar.dynamicAnalysis=reuseReports
sonar.junit.reportsPath=target/surefire-reports
sonar.java.coveragePlugin=jacoco
sonar.jacoco.reportPath=target/jacoco.exec

Please do let me know how to resolve this issue and report. 

Regards,
Pradeep

Victor Martinez

unread,
Oct 30, 2018, 6:17:58 PM10/30/18
to Jenkins Users
No enough details to understand whether the issue is within the maven project (maybe missing the jacaco configuration), sonar or a misconfiguration within the Jenkins instance somehow, or even some environmental issue.

My first approach would be to run the mvn locally and ensure the jacoco reports are generated fine, then repeat the same steps using Jenkins and validate whether the configuration is exactly the same in both systems your local environment and the Jenkins one.

Cheers
Reply all
Reply to author
Forward
0 new messages