Upload grail-plugin type zip and pom to nexus

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

XMLWordPrintable

      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.

            Assignee:
            Matteo Turra
            Reporter:
            Matteo Turra
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: