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

nexusArtifactUploader without version to raw repo makes dash in filename

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins ver. 2.204.2
      nexusArtifactUploader 2.13

      When uploading to raw repo the result is an artifact in the repo that has dash '-' prepending the empty str version. If type is null then the dash is at the end of the filename, if type is specified then the dash is before the period extension.

       

      I'm using HTTP Request instead, but I would prefer to have the hash .md5 .sha features of this plugin.

       

      pipeline snip:

       nexusArtifactUploader nexusUrl: 'nexus.example.com',
          credentialsId: 'nexus',
          nexusVersion: 'nexus3',
          protocol: 'https',
          repository: 'test-generic',
          version: null,
          artifacts: [
              [artifactId: 'foo.txt',
              classifier: '',
              file: '/path/to/foo.txt',
              type: null
              ]
          ]

      result:

      Repository test-generic
      Format raw
      Component Group /foo.txt
      Component Name foo.txt/foo.txt-
      Path foo.txt/foo.txt-

       

      it looks like version is required in some context - doCheckVersion() - but is allowed as null or empty str in pipeline.

       

       

            pskumar448 Suresh Kumar
            tlynchpin Tim Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: