Search code examples
jenkinsjava-8jacocojacoco-maven-pluginmaven-cobertura-plugin

Trying to get jacoco report for my project using jenkins. But its giving wrong report. it includes __cobertura* methods also


I am trying to get jacoco report for my project using jenkins. But its giving wrong report. it includes __cobertura* methods also.

effective pom here

I am getting correct report using maven install from eclipse. But if I build using jenkins for the same class I am getting weird results. It includes __copertura generated methods. and there are huge difference in the other method coverages too. can I get the same result as I am getting in eclipse ? [click][2]

[2]: https://i.sstatic.net/aojJ7.png

Solution

  • Found the problem

    gave this maven command in jenkins

    -B -U clean install cobertura:cobertura -Dcobertura.report.format=xml pmd:pmd pmd:cpd findbugs:findbugs

    now removed and gave -B -U clean install alone. its working now