Jacoco Reeport form jacoco jenkins plugin

61 views
Skip to first unread message

sai kumar

unread,
Mar 3, 2021, 8:42:14 AM3/3/21
to Jenkins JaCoCo plugin mailing list
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)






Dominik Stadler

unread,
Mar 3, 2021, 12:25:56 PM3/3/21
to jenkins-jacoco-pl...@googlegroups.com
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.

--
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) jenkins-jacoco-plugin-m...@googlegroups.com 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.
Reply all
Reply to author
Forward
0 new messages