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 24, 2020 in Jenkins by anonymous
• 19,610 points
1,452 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.

Accelerate your DevOps journey with Continuous Testing in DevOps and ensure quality at every stage of your software development lifecycle
answered Sep 25, 2020 by MD
• 95,440 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
1,153 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,520 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
• 59,230 points
76,202 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP