Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-20754

Jacoco coverage reports built from Jenkins are inconsistent.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Critical Critical
    • jacoco-plugin
    • None

      I have a maven multi module project and I want my build to fail if code coverage is insufficient.

      I'm using jacoco maven plugin for this, I had no problem with local builds but when building my project on Jenkins I have found jacoco reports to be inconsistent.

      This is a blocking problem to me because the build fails when coverage expectations are not met.

      Here's two extract of failed build with no SCM changes between them.

      build #89

      [WARNING] Insufficient code coverage for COMPLEXITY: 60,52% < 63,14%
      [WARNING] Insufficient code coverage for METHOD: 64,28% < 67,84%
      

      build #90

      [WARNING] Insufficient code coverage for BRANCH: 70,00% < 75,00%
      [WARNING] Insufficient code coverage for COMPLEXITY: 57,89% < 63,14%
      [WARNING] Insufficient code coverage for METHOD: 64,28% < 67,84%
      

      Previous build was successful with the same code coverage expectations.

      I have tried with different jacoco versions (0.6.2.201302030002 and 0.6.3.201306030806) without luck.

      I have reported this problem in jenkins issue tracker since I have only seen it my Jenkins build and not in my local builds but I may be wrong.

      I understand this is not easy to fix or investigate, I just thought it was important to report it.

      Kind regards,

      Joel

            ognjenb Ognjen Bubalo
            jocosti Joel Costigliola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: