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

Upload grail-plugin type zip and pom to nexus

XMLWordPrintable

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

      In Jenkins file I have:

      nexusArtifactUploader (
        artifacts: [
          [artifactId: "$\\{artifact}", classifier: '', file: 'pom.xml', type: 'pom'],
          [artifactId: "$\\{artifact}", classifier: '', file: "grails-$\\{artifact}-$\\{applicationVersion}.zip", type: 'zip']
        ],
        credentialsId: 'nexus',
        groupId: "${applicationGroup}",
        nexusUrl: "${nexusUrl}",
        nexusVersion: 'nexus3',
        protocol: 'https',
        repository: "repo-${(isSnapshot=='true')?'snapshots':'releases'}",
        version: "${applicationVersion}"
      )
      

      Build log show only the message for zip artifact upload, but nothing for the pom.

      How can I upload zip and pom for the same SNAPSHOT release?

      I tried to change the artifact order and put file doesn't exists for the pom.xml, but nothing happen, nor errors in the log.

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

              Created:
              Updated:
              Resolved: