I have close to 60 artifacts(jar) created from a project I want to upload it to nexus ,I have tried diff wildcards it failed.
can I create a loop or is there a beter way to do this .
below is snippet from my jenkins file
nexusArtifactUploader artifacts: [
            [artifactId: "test-services", 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"
            }
        }
				
                        
I added a for loop and let uploader iterate over the artifacts. Im not sure if its the right approach .but it does the job as of now . still looking for better options
let me know if i can improve the below.