Can anyone share how do we integrate the Cobertura code coverage tool to Jenkins?

0 votes
Hi Team,

Can anyone share how do we integrate the Cobertura code coverage tool to Jenkins
Sep 23 in Jenkins by anonymous
• 19,080 points
32 views

1 answer to this question.

0 votes

Hi,

You need to install plugins for that. Jenkins don't have plugins installed initially. You can follow the below steps to do so.

  1. Install the cobertura plugin (via Manage Jenkins -> Manage Plugins)

  2. Configure your project's build script to generate cobertura XML reports (See below for examples with Ant and Maven2)

  3. Enable the "Publish Cobertura Coverage Report" publisher

  4. Specify the directory where the coverage.xml report is generated.

  5. (Optional) Configure the coverage metric targets to reflect your goals.

answered Sep 25 by MD
• 67,880 points

Related Questions In Jenkins

0 votes
1 answer

How do I pass value from my Fake # script to the host build server (Jenkins)

You can use the EnvInject plugin to pass environment ...READ MORE

answered Jul 11, 2018 in Jenkins by Kalgi
• 2,620 points
363 views
0 votes
1 answer
0 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
740 views
+2 votes
1 answer
0 votes
1 answer

What are the prerequisites to learn Jenkins tool?

Hi@akhtar, As mentioned, there are no such prerequisite ...READ MORE

answered May 21 in Jenkins by MD
• 67,880 points
394 views