Can this plugin be used to merge Jacoco exec in a Jenkins plugin(gradle project)

51 views
Skip to first unread message

Mehul Parmar

unread,
Sep 19, 2022, 10:42:16 AM9/19/22
to Jenkins JaCoCo plugin mailing list
Can this plugin be used to merge Jacoco exec in a Jenkins plugin? I need a jacoco cli jar to merge exec in my Jenkins plugin. I am just figuring out if this can do the job?

Mehul Parmar

unread,
Sep 19, 2022, 11:17:24 AM9/19/22
to Jenkins JaCoCo plugin mailing list
Hello,
I noticed I would requiring class public class MergeTask extends Task   to do this operation using plugin. Let me know if this is possible with this plugin?

\--- org.jenkins-ci.plugins:jacoco:3.0.3
     +--- org.jacoco:org.jacoco.report:0.8.2
     |    \--- org.jacoco:org.jacoco.core:0.8.2
     |         +--- org.ow2.asm:asm:6.2.1 -> 9.0
     |         +--- org.ow2.asm:asm-commons:6.2.1 -> 9.0 (*)
     |         \--- org.ow2.asm:asm-tree:6.2.1 -> 9.0 (*)
     +--- org.ow2.asm:asm:6.2.1 -> 9.0
     +--- org.ow2.asm:asm-commons:6.2.1 -> 9.0 (*)
     +--- org.jacoco:jacoco-maven-plugin:0.8.2
     |    +--- org.apache.maven:maven-plugin-api:${project.prerequisites.maven} -> 2.0.10
     |    +--- org.apache.maven:maven-project:${project.prerequisites.maven} -> 2.0.10
     |    |    +--- org.apache.maven:maven-settings:2.0.10
     |    |    |    \--- org.apache.maven:maven-model:2.0.10
     |    |    +--- org.apache.maven:maven-profile:2.0.10
     |    |    |    \--- org.apache.maven:maven-model:2.0.10
     |    |    +--- org.apache.maven:maven-model:2.0.10
     |    |    +--- org.apache.maven:maven-artifact-manager:2.0.10
     |    |    |    +--- org.apache.maven:maven-repository-metadata:2.0.10
     |    |    |    +--- org.apache.maven:maven-artifact:2.0.10
     |    |    |    \--- org.apache.maven.wagon:wagon-provider-api:1.0-beta-2
     |    |    +--- org.apache.maven:maven-plugin-registry:2.0.10
     |    |    \--- org.apache.maven:maven-artifact:2.0.10
     |    +--- org.apache.maven.shared:file-management:1.2.1
     |    |    +--- org.apache.maven:maven-plugin-api:2.0.6 -> 2.0.10
     |    |    \--- org.apache.maven.shared:maven-shared-io:1.1
     |    |         +--- org.apache.maven:maven-artifact:2.0.2 -> 2.0.10
     |    |         +--- org.apache.maven:maven-artifact-manager:2.0.2 -> 2.0.10 (*)
     |    |         \--- org.apache.maven.wagon:wagon-provider-api:1.0-alpha-6 -> 1.0-beta-2
     |    +--- org.apache.maven.reporting:maven-reporting-api:${project.prerequisites.maven} -> 3.1.0 (*)
     |    +--- org.apache.maven.reporting:maven-reporting-impl:2.1
     |    |    +--- org.apache.maven.reporting:maven-reporting-api:3.0 -> 3.1.0 (*)
     |    |    +--- org.apache.maven:maven-project:2.0.10 (*)
     |    |    +--- org.apache.maven:maven-plugin-api:2.0.10
     |    |    \--- commons-validator:commons-validator:1.2.0
     |    |         +--- commons-beanutils:commons-beanutils:1.7.0 -> 1.9.3 (*)
     |    |         +--- commons-digester:commons-digester:1.6 -> 2.1 (*)
     |    |         +--- commons-logging:commons-logging:1.0.4 -> 1.2
     |    |         +--- oro:oro:2.0.8
     |    |         \--- xml-apis:xml-apis:2.0.2 -> 1.4.01
     |    +--- org.jacoco:org.jacoco.agent:0.8.2
     |    +--- org.jacoco:org.jacoco.core:0.8.2 (*)
     |    \--- org.jacoco:org.jacoco.report:0.8.2 (*)
     +--- org.codehaus.plexus:plexus-utils:3.1.0
     +--- xml-apis:xml-apis:1.4.01
     +--- org.apache.httpcomponents:httpcore:4.4.8 -> 4.4.11
     \--- org.jenkins-ci.plugins:structs:1.10 -> 1.17 (*)

Dominik Stadler

unread,
Sep 19, 2022, 11:40:33 AM9/19/22
to jenkins-jacoco-pl...@googlegroups.com
Hi,

This plugin allow to visualize coverage data for Jenkins Jobs. It should be able to read multiple .exec files and produce combined numbers in the UI, but it will not produce a resulting "merged" .exec file. For this you will need to look at the underlying JaCoCo library/tooling and find out if it can do that somehow.

Regards... Dominik.

On Mon, Sep 19, 2022 at 4:42 PM Mehul Parmar <mehulpa...@gmail.com> wrote:
Can this plugin be used to merge Jacoco exec in a Jenkins plugin? I need a jacoco cli jar to merge exec in my Jenkins plugin. I am just figuring out if this can do the job?

--
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/cec64bb2-5b1d-47be-b1f0-4dec7fde072dn%40googlegroups.com.

Mehul Parmar

unread,
Sep 20, 2022, 2:27:55 AM9/20/22
to Jenkins JaCoCo plugin mailing list
Hello,
I figured out I will require this dependency "implementation ‘org.jacoco:org.jacoco.ant:0.8.7’" in my build.gradle. But this is my plugins size. Any way to not ship in jpi and use for execution only, so that jpi size does not increase?

Dominik Stadler

unread,
Sep 20, 2022, 4:07:26 AM9/20/22
to jenkins-jacoco-pl...@googlegroups.com

Sorry but this list is mostly for the jenkins plugin. For detailed questions about JaCoCo itself, you will need to use other places to discuss, e.g. StackOverflow or resources listed at https://www.jacoco.org/contact.html

Regards... Dominik.

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/06062d38-9fd9-49f6-9826-2302d296085en%40googlegroups.com.

Mehul Parmar

unread,
Sep 20, 2022, 4:10:59 AM9/20/22
to jenkins-jacoco-pl...@googlegroups.com
Hello,
I was actually looking if jacoco.ant jar is shipped in any of the jenkins plugin to reuse?

Azért kapta ezt az üzenetet, mert feliratkozott a Google Csoportok „Jenkins JaCoCo plugin mailing list” témájára.
A témáról való leiratkozáshoz látogasson el a következő címre: https://groups.google.com/d/topic/jenkins-jacoco-plugin-mailing-list/B1t89UM6s0Q/unsubscribe.
Az erről a csoportról és minden témájáról való leiratkozáshoz küldjön egy levelet a következő címre: jenkins-jacoco-plugin-m...@googlegroups.com.
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/CABdJj54AEd1se1KzGbC%2BJtUUmoVKwSX9kTC5v8T%3DFJ40DvOsKg%40mail.gmail.com.

Dominik Stadler

unread,
Sep 20, 2022, 5:23:23 AM9/20/22
to jenkins-jacoco-pl...@googlegroups.com
Ah, sorry, but the jacoco-plugin simply includes jacoco as dependency, not sure what you try to achieve here.

Dominik.


Mehul Parmar

unread,
Sep 21, 2022, 4:56:36 AM9/21/22
to Jenkins JaCoCo plugin mailing list
Hello,
I actually wanted to use Jacoco from Jenkins dependency itself. So that I dont have to include extra jar. But it seems like jacoco.ant jar is not added in jenkins as a transitive dependency. So will need to include it separetely. 

Reply all
Reply to author
Forward
0 new messages