How to publish code-coverage results in Jenkins using an existing Jacoco coverage xml report?

654 views
Skip to first unread message

neeb...@gmail.com

unread,
Jul 17, 2017, 10:02:27 AM7/17/17
to JaCoCo and EclEmma Users
Hello,

I am fairly new to the Jacoco coverage format, and was looking to integrate Jacoco coverage results with Jenkins using the Jacoco plugin(https://wiki.jenkins.io/display/JENKINS/JaCoCo+Plugin).

I wanted to know if there's a way to view code-coverage results from an existing XML report (well formed and valid according to the DTD in Jacoco documentation) in Jenkins?

Looking at some blog-posts (https://dzone.com/articles/jacoco-jenkins-plugin), it seems that such imports were possible previously, where an XML file was location could be specified in the "Post-Build Actions" options. This seems to have changed in the later version, where the user needs to specify location of the .EXEC files and Sources.

I'm particularly curious about this part, since the Jenkins plugin for the Cobertura format allows users to import and view results from an XML file. Is there still a way I can do this using the Jacoco plugin?


Thank you for any help on this.

Evgeny Mandrikov

unread,
Jul 17, 2017, 9:42:50 PM7/17/17
to JaCoCo and EclEmma Users, neeb...@gmail.com
Hi,

Jenkins JaCoCo Plugin is not developed by JaCoCo team and unfortunately developers of Jenkins plugin do not read this mailing list , but have a separate one - http://groups.google.com/group/jenkins-jacoco-plugin-mailing-list Please contact them directly.

P.S. According to the page https://wiki.jenkins.io/display/JENKINS/JaCoCo+Plugin support of import of XML was removed a long time ago (back in 2012).

neeb...@gmail.com

unread,
Jul 18, 2017, 3:44:33 PM7/18/17
to JaCoCo and EclEmma Users, neeb...@gmail.com

Thanks, Evgeny.

Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages