Uploaded image for project: 'Jenkins Artifactory Plug-in'
  1. Jenkins Artifactory Plug-in
  2. HAP-829

Specifying flat option in downloadSpec throws java.lang.NoClassDefFoundError: org/eclipse/jgit/util/StringUtils

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 2.7.2
    • Fix Version/s: 2.8.0
    • Component/s: None
    • Labels:
    • Environment:

      artifactory plugin 2.7.2
      Jenkins LTS 2.19.1
      OpenJDK 1.8.0_102-b14 (Zulu 8.17.0.3-win64)
      Win7 Pro

      Description

      When using the Pipeline API download with the flat option, the plugin throws the exception mentioned in the Summary. It doesn't matter what value you set flat to; its presence in the downloadSpec map triggers the error. E.g.,

      artiSvr.download '''
          {
              "files": [
                {
                    "pattern": "some-repo/**/cool-proj.jar",
                    "target": "localBins/",
                    "flat": "true"
                }
              ]
          }
      '''
      

      The same goes for the other boolean option, recursive.

      I believe this is because, at least in the jenkinsci repo, GenericDownloadExecutor is importing jgit.util.StringUtils while the dependency isn't actually packaged up with the current plugin.

      I have a sneaking suspicion HAP-823 may refactor away this bug, but am unsure.

      FWIW another user reported this as well on SO.

        Attachments

          Activity

            People

            • Assignee:
              diman Dima Nevelev (Inactive)
              Reporter:
              brian.ray Brian Ray
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: