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

Only java source files are processed, groovy, scala, gosu, etc. don't show coverage graphically

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • jacoco-plugin
    • Jenkins version 2.44
      Jacoco version 2.2.0

      After JaCoCo version 2.2.0 was released graphical code coverage display stoped working for non .java source files. Such as .groovy, .scala, .gs, .kt, etc.

      No code is displayed when viewing the coverage section of the reports.

       The JaCoCo log outputs:

      [JaCoCo plugin] Saving matched source directories for source-pattern: src: 
      [JaCoCo plugin] - /var/lib/jenkins/jobs/myjob/workspace/src 0 files
      [JaCoCo plugin] Loading inclusions files..
      

       Indicating 0 files were read from the source directory.

      The cause is related to this improvement Filter class directories JENKINS-38604

      Commit d771e0b15933516917208f30dd54bad81b1c290d introduced a change on line 472 of JacocoPublisher.java which restricts source files with the mask */.java

      Rolling back to version 2.1.0 of JaCoCo restores the expected behaviour.

      Can inclusions / exclusions filters be added similar to how class directories are filtered?

            spudmux Neal Hunter
            spudmux Neal Hunter
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: