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

nexusArtifactUploader Allow uploading by path instead of by name and version

      When we use the pluin nexusArtifactUploader for rpm or tar files, we want to have all the artifacts in the same group referenced by groupid.

      For example

      REPO/rpm/bash-1.1.1-01.el1.x86_64.rpm

      REPO/rpm/ksh-1.1.1-01.el1.x86_64.rpm

      will be better than

      REPO/rpm/bash/1.1.1-01/bash-1.1.1-01.el1.x86_64.rpm

      REPO/rpm/ksh/1.1.1-01/ksh-1.1.1-01.el1.x86_64.rpm

      when we do a wget on the nexus

          [JENKINS-46340] nexusArtifactUploader Allow uploading by path instead of by name and version

          Jan Klass added a comment -

          Technical analysis as a starter/context for implementing it:

          1. groupId and version is passed to DefaultArtifact
          2. DefaultArtifact is from the sonatype aether package
          3. sonatype aether seems to have migrated to an eclipse project, which in turn has been archived. from the limited information I can find it seems to be for maven package uploading (is it for more/unspecific?)
          4. DefaultArtifact constructor paramters indicate there's no option without them
          5. Which would make sense if it is a lib only for Magen and Pom, which makes the groupId and version fields a requirement
          6. So to implement this, the configuration would have to introduce a second type of configuration and mark the existing one as explicitly for Maven

          Jan Klass added a comment - Technical analysis as a starter/context for implementing it: groupId and version is passed to DefaultArtifact DefaultArtifact is from the sonatype aether package sonatype aether seems to have migrated to an eclipse project, which in turn has been archived. from the limited information I can find it seems to be for maven package uploading (is it for more/unspecific?) DefaultArtifact constructor paramters indicate there's no option without them Which would make sense if it is a lib only for Magen and Pom, which makes the groupId and version fields a requirement So to implement this, the configuration would have to introduce a second type of configuration and mark the existing one as explicitly for Maven

          Jan Klass added a comment -

          Jan Klass added a comment - The Nexus 3 API provides a simple REST upload method with directory path and filename (raw) .

            pskumar448 Suresh Kumar
            dwizz Francois M
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: