Jenkins integrated Cobertura, caller ID cobertura report

Source: Internet
Author: User

My project is to use MAVEN as a build tool. about how Maven integrates Jenkins see:

http://blog.csdn.net/yaominhua/article/details/40684355

This article only describes how to integrate Cobertura in Jenkins:

1. First make sure you have Jenkins installed with Cobertura plugin:


2. Configure Jenkins, change maven's Run command, add cobertura Run command Cobertura:cobertura


3. In the Add Post Build action This configuration item is selected for example the following publish Cobertura Coverage report:


4. After the selection, a configuration item is displayed, where you finally cobertura the path to the XML report, and my path is **/target/site/cobertura/coverage.xml

watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvewfvbwluahvh/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">

5. Build your project again. You will be able to see the code Coverage report on the project homepage:

watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvewfvbwluahvh/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">

watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvewfvbwluahvh/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">

Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.

Jenkins integrated Cobertura, caller ID cobertura report

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.