How is this gradle issue when l run locally it is generating all the
.exec,.xml files.

Regards,
Girish Bhat


On Tue, May 11, 2021 at 9:05 PM Marc Hoffmann <hoffm...@mountainminds.com>
wrote:

> Hi,
>
> please note that the Grade plugin is not maintained by us. See our
> integration matrix:
>
>    https://www.jacoco.org/jacoco/trunk/doc/integrations.html
>
> Please contact the Gradle project for support.
>
> In general the build log should give you an idea what may go wrong on the
> Jenkins server.
>
> Regards,
> -marc
>
>
> On 11. May 2021, at 17:16, Girish Bhat <gbha...@gmail.com> wrote:
>
> Hi All,
>
> I am working on code coverage on Gradle build..I tried locally it was
> working and generating all necessary files like .exec, .xml but when on
> Jenkins pipeline not generating any files...
>
> Today I downloaded the Jenkins artifacts just to make sure that the
> *reports* folder present or not, and I found that it’s not. below is the
> dir structure…
>
> for reference attaching all screen shots:
> dir of Jenkins Artifacts..
> <Screenshot 2021-05-11 at 6.18.21 PM.png>
>
> Below Screenshot of running locally using the command  "./gradlew clean
> jacocoTestReport sonarqube"
>
> <Screenshot 2021-05-11 at 7.34.39 PM.png>
>
> This is how the task is defined in app/build.gradle file
>
> task jacocoTestReport(type: JacocoReport, dependsOn:
> [‘testProdReleaseUnitTest’]) {
> reports {
> xml.enabled = true
> html.enabled = true
> }
> def fileFilter = ['**/R.class', '**/R$*.class', '**/BuildConfig.*',
> '**/Manifest*.*', 'android/**/*.*']
> def debugTree = fileTree(dir:
> "${buildDir}/intermediates/javac/prodRelease/classes", excludes:
> fileFilter)
> def mainSrc = "${project.projectDir}/src/main/java"
> getSourceDirectories().setFrom(files([mainSrc]))
> getClassDirectories().setFrom(files([debugTree]))
> getExecutionData().setFrom(fileTree(dir: "$buildDir", includes:
> ["jacoco/testProdReleaseUnitTest.exec"]))
>
> }
>
>
>
>
>
>
> <https://aws1.discourse-cdn.com/sonarsource/uploads/sscommunity/original/3X/d/d/dd8ad71d2cf6adf20c236b9a9b75855b37fa3979.png>
>
> --
> You received this message because you are subscribed to the Google Groups
> "JaCoCo and EclEmma Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jacoco+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jacoco/e110719c-a6a9-40e5-bbf3-f6116a053152n%40googlegroups.com
> <https://groups.google.com/d/msgid/jacoco/e110719c-a6a9-40e5-bbf3-f6116a053152n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> <Screenshot 2021-05-11 at 6.18.21 PM.png><Screenshot 2021-05-11 at
> 7.34.39 PM.png>
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "JaCoCo and EclEmma Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jacoco/aj3n-p9ML5M/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jacoco+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jacoco/F0AABA4F-1323-4C5F-80C9-18C2F255BD73%40mountainminds.com
> <https://groups.google.com/d/msgid/jacoco/F0AABA4F-1323-4C5F-80C9-18C2F255BD73%40mountainminds.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jacoco+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/CAOhzPiRfLuzaSEoc%2BRo_Bvt_5h7KNcRS4dqSp2D6WN91yVDmvA%40mail.gmail.com.

Reply via email to