Hi, this group is solely for questions around usage of the jacoco-plugin in Jenkins. As your question seem to be more related to using jacoco itself, you will likely get better answers if you contact the JaCoCo community instead.
Regards... Dominik. On Wed, Mar 3, 2021 at 2:42 PM sai kumar <[email protected]> wrote: > Hello, > > I am using jacoco plugin in jenkins and getting report published at each > build. > > How do I export this published report as html. > > Actually I required the *Jacoco - Overall Coverage Summary *values to > notify from jenkins job in slack channel is there any way to capture the > following details in jenkins > INSTRUCTION 8% > BRANCH. 4% > COMPLEXITY 6% > LINE 8% > METHOD 9% > CLASS 13% > > *How do I achieve this. * > > I tried to execute the jacoco command line tool to generate the report > but getting below error. > > java -jar ~/jacococli.jar report **/**.exec --classfiles > **/classes/**/*.class --sourcefiles **/src/main/java --html html > > [INFO] Loading execution data file > /workspace/test-centos/analytics/build/intermediates/javac/debugWithProguard/classes. > > Exception in thread "main" java.io.FileNotFoundException: > analytics/build/intermediates/javac/debugWithProguard/classes (Is a > directory) > > at java.io.FileInputStream.open0(Native Method) > > at java.io.FileInputStream.open(FileInputStream.java:195) > > at java.io.FileInputStream.<init>(FileInputStream.java:138) > > at > org.jacoco.cli.internal.core.tools.ExecFileLoader.load(ExecFileLoader.java:72) > > at > org.jacoco.cli.internal.commands.Report.loadExecutionData(Report.java:99) > > at org.jacoco.cli.internal.commands.Report.execute(Report.java:83) > > at org.jacoco.cli.internal.Main.execute(Main.java:90) > > at org.jacoco.cli.internal.Main.main(Main.java:105) > > > > > > > -- > Azért kapta ezt az üzenetet, mert feliratkozott a Google Csoportok > „Jenkins JaCoCo plugin mailing list” csoportjára. > Az erről a csoportról és az ahhoz kapcsolódó e-mailekről való > leiratkozáshoz küldjön egy e-amailt a(z) > [email protected] címre. > Ha szeretné megtekinteni ezt a beszélgetést az interneten, látogasson el > ide: > https://groups.google.com/d/msgid/jenkins-jacoco-plugin-mailing-list/245b8a9e-27a6-4396-aa62-97aac9367d34n%40googlegroups.com > <https://groups.google.com/d/msgid/jenkins-jacoco-plugin-mailing-list/245b8a9e-27a6-4396-aa62-97aac9367d34n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Azért kapta ezt az üzenetet, mert feliratkozott a Google Csoportok szolgáltatásbeli Jenkins JaCoCo plugin mailing list csoportra. Az erről a csoportról és az ahhoz kapcsolódó e-mailekről való leiratkozáshoz küldjön egy e-amailt a(z) [email protected] címre. Ha szeretné megtekinteni ezt a beszélgetést az interneten, látogasson el ide: https://groups.google.com/d/msgid/jenkins-jacoco-plugin-mailing-list/CABdJj54L5XmjTwa0W3b7Gmae9Hsd6y2QQrUCCbB0%3Ddku2pO9_w%40mail.gmail.com.
