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

Upload multiple SNAPSHOT artifact

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Jenkins 2.107.2
      Nexus Artifact uploader 2.10

      If multiple SNAPSHOT artifact are specified:

       nexusArtifactUploader (
        artifacts: [

         [artifactId: "foo", file: "target/foo-1.0-SNAPSHOT.jar", type: "jar"],

         [artifactId: "foo", file: "target/foo-1.0-SNAPSHOT.pom", type: "pom"]

        ],
       credentialsId: 'ci-deploy-nexus', 
       groupId: "${group}", 
       nexusUrl: "${nexusUrl}",
       nexusVersion: 'nexus3',
       protocol: 'https',
       repository: "snapshots",
       version: "${version}"
      }

      Two snapshot version are created (one for the pom artifact and one for the jar artifact)

            pskumar448 Suresh Kumar
            mturr Matteo Turra
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: