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, 2020 in Jenkins by anonymous
• 19,580 points
78 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, 2020 by MD
• 95,060 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,680 points
446 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
958 views
+2 votes
1 answer
+1 vote
3 answers

How to auto build a job in jenkins if there is any change in code on Github repository?

To automatically run build on code commit, follow ...READ MORE

answered Jul 31, 2019 in Jenkins by Sirajul
• 58,990 points
18,667 views