Multiple Artifacts in Nexusartfactuploader

9 views
Skip to first unread message

Manoj Chander

unread,
Dec 4, 2020, 10:45:04 AM12/4/20
to Jenkins Users
Hi greetings everyone ,

My project is creating some 60 jars with diff names  , I want to push them  to nexus i could not use wildcard (.jar) build fails seems  nexusArtifactUploader doesnt suport wildcard.

how can i achieve this can i create a loop ? 

is there a better way to do this .


nexusArtifactUploader artifacts: [
            [artifactId: "testservices", classifier: '', file: "/server/services/deploy/"*.jar', type: 'jar']
          ],
          credentialsId:  NEXUS_CREDENTIAL_ID,
          groupId: "$group",
          nexusUrl: NEXUS_URL,
          nexusVersion: 'nexus3',
          protocol: 'https',
          repository: NEXUS_REPO ,
          version: "$nexus_version${BUILD_NUMBER}-SNAPSHOT"
            }
        }
        
    
Reply all
Reply to author
Forward
0 new messages