Does the Jenkins JaCoCo Plugin respect maven jacoco plugin exclusions configuration?

10 views
Skip to first unread message

Scott Shipp

unread,
Nov 4, 2021, 6:52:48 PM11/4/21
to Jenkins JaCoCo plugin mailing list
I am asking if the exclusions configured for the maven jacoco plugin will also be respected by the Jenkins JaCoco Plugin?

In my POM, I have a standard exclusions configuration and I can see that it works in the build output. This means, for my project, that the maven-jacoco-plugin prepare-agent-integration goal shows my exclusions being applied and the report goal shows only 10 (instead of 16) files included.

But my observation is that in my Jenkins pipeline, the 6 files that should be excluded are included in the report produced from the Jenkins JaCoco Plugin.

Is this expected?

Do I have to duplicate the exclusions configuration for maven-jacoco-plugin in the Jenkins JaCoCo Plugin configuration in order to get a consistent experience?

Dominik Stadler

unread,
Nov 5, 2021, 5:20:41 AM11/5/21
to jenkins-jacoco-pl...@googlegroups.com
Hi,

currently these settings have to be duplicated in the build-config as the plugin does not know about how the various build-systems configure these settings.

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/c85d9f06-60d4-44a5-ae93-0725d944221cn%40googlegroups.com.

Scott Shipp

unread,
Nov 5, 2021, 10:58:18 AM11/5/21
to Jenkins JaCoCo plugin mailing list
Thanks for confirming! I'll update in both. Just a stray last thought: if the plugin wanted to, there are a couple ways it could remain consistent. One is that it could read the same configuration from the POM. The second is it could limit its report to only those files where execution data was collected

Dominik Stadler

unread,
Nov 6, 2021, 5:38:18 AM11/6/21
to jenkins-jacoco-pl...@googlegroups.com
Thanks for the suggestions, unfortunately the plugin is pretty much in "maintainance mode" at the moment, but PRs with new features are highly welcome, just make sure to not break existing functionality, maybe by adding a new option "read configuration from pom.xml" that is not enabled by default.

D.

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/595526e5-c690-4c4e-98c0-dd1c08d523edn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages