export jacoco report from jacoco jenkins plugin

24 views
Skip to first unread message

Jennie

unread,
Oct 26, 2020, 10:40:19 AM10/26/20
to Jenkins JaCoCo plugin mailing list
Hi,

I hope someone can give me some insights. I'm using jacoco jenkins plugin for integrated testing coverage. I have result from jenkins, now I have a need to use coverage data outside of Jenkins. I can use jenkins rest api to export the "Overall Coverage Summary" data by using /...buildNumber/jacoco/api/json endpoint, however, I'm not sure how to export data for "Coverage Breakdown by Package", /...buildNumber/jacoco/api/json doesn't include that. 

Any suggestions?

Thanks!
Jennie

Dominik Stadler

unread,
Oct 26, 2020, 11:47:26 AM10/26/20
to jenkins-jacoco-pl...@googlegroups.com

The JaCoCo Jenkins Plugin does not target this use-case currently. But as you run jacoco as part of your build-system already, the easiest is to configure the proper report as part of your build and export it as part of the Jenkins configuration as "artifact" of the build. E.g .the XML report is the machine readable format, HTML is more human readable.

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/51978a6d-900c-4ca5-8a90-f3758f1b7372n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages