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