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

Support specifying one or more JARs in the classPattern

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • jacoco-plugin
    • None

      When using the Ant tasks for JaCoCo I have no problem specifying a directory containing JARs or an individual JAR in \\report\structure\classfiles. It seems the Jenkins JaCoCo plugin does not support this, JARs are ignored. As a workaround I have another post-build task first extracting the JAR into a temporary directory.

          [JENKINS-19915] Support specifying one or more JARs in the classPattern

          Claes Wallin (韋嘉誠) created issue -
          Claes Wallin (韋嘉誠) made changes -
          Issue Type Original: Bug [ 1 ] New: New Feature [ 2 ]
          Claes Wallin (韋嘉誠) made changes -
          Description Original: When using the Ant tasks for JaCoCo I have no problem specifying a directory containing JARs or an individual JAR in \\report\structure\classfiles. It seems the Jenkins JaCoCo plugin does not support this, JARs are ignored. As a workaround I have another post-build task first extracting the JAR into a temporary directory, from which the plugin then copies them into builds/*/jacoco/classes. This seems unnecessary.
          New: When using the Ant tasks for JaCoCo I have no problem specifying a directory containing JARs or an individual JAR in \\report\structure\classfiles. It seems the Jenkins JaCoCo plugin does not support this, JARs are ignored. As a workaround I have another post-build task first extracting the JAR into a temporary directory.
          Claes Wallin (韋嘉誠) made changes -
          Priority Original: Major [ 3 ] New: Minor [ 4 ]

          David Miller added a comment -

          I recently started to try out the Jenkins JaCoCo plug-in, specified a directory ("Path to class directories") that contained only jar files, and it worked OK.

          David Miller added a comment - I recently started to try out the Jenkins JaCoCo plug-in, specified a directory ("Path to class directories") that contained only jar files, and it worked OK.

          Ognjen Bubalo added a comment -

          We are planning to reimplement usage of reports generated by the JaCoCo itself. It would fix this.

          Ognjen Bubalo added a comment - We are planning to reimplement usage of reports generated by the JaCoCo itself. It would fix this.

          Josh Landin added a comment -

          This feature would be particularly useful where an upstream job did the actual build and passed the final artifact(s) to a job performing integration (or functional) tests. This is quite common and the workaround mentioned above is rather messy. I'll look into getting a patch together for this.

          Josh Landin added a comment - This feature would be particularly useful where an upstream job did the actual build and passed the final artifact(s) to a job performing integration (or functional) tests. This is quite common and the workaround mentioned above is rather messy. I'll look into getting a patch together for this.
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 151436 ] New: JNJira + In-Review [ 177958 ]

            ognjenb Ognjen Bubalo
            clacke Claes Wallin (韋嘉誠)
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: