jacoco report not found

50 megtekintés
Ugrás az első olvasatlan üzenetre

Pradeep Drall

olvasatlan,
2018. okt. 30. 7:31:322018. 10. 30.
– 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

olvasatlan,
2018. okt. 30. 18:17:582018. 10. 30.
– 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
Válasz mindenkinek
Válasz a szerzőnek
Továbbítás
0 új üzenet