nexusArtifactUploader without version to raw repo makes dash in filename

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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.

       

       

            Assignee:
            Suresh Kumar
            Reporter:
            Tim Lynch
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: