title: How to deploy multiple artifacts to nexus?
body: <p>I'm using Nexus Artifact Upload in jenkins pipeline to upload artifacts to Nexus, in the pipeline I'm using this code to deploy, it works perfectly for deploying one artifact. but how can I deploy multipe artifacts :</p>
  
  <pre><code>Stage 'Nexus Deploy'
       nexusArtifactUploader
          artifactId: 'com.example.project',
          file: 'server/jetty-project/target/jetty-project-0.0.1-SNAPSHOT.war',
          groupId: 'test-javaproject',
          type:'war',
          nexusPassword: 'admin123',
          nexusUrl: 'XX.XX.XX.XX:8080/nexus',
          nexusUser: 'admin',
          nexusVersion: 'nexus3',
          protocol: 'http',
          repository: 'maven-snapshots',
          version: '0.0.1-SNAPSHOT'
  </code></pre>
  
  <p>in the doc it says that it's possible to deploy multiple artifacts like that </p>
  
  <pre><code>freeStyleJob('NexusArtifactUploaderJob') {
      steps {
        nexusArtifactUploader {
          nexusVersion('nexus2')
          protocol('http')
          nexusUrl('localhost:8080/nexus')
          groupId('sp.sd')
          version('2.4')
          repository('NexusArtifactUploader')
          credentialsId('44620c50-1589-4617-a677-7563985e46e1')
          artifact {
              artifactId('nexus-artifact-uploader')
              type('jar')
              classifier('debug')
              file('nexus-artifact-uploader.jar')
          }
          artifact {
              artifactId('nexus-artifact-uploader')
              type('hpi')
              classifier('debug')
              file('nexus-artifact-uploader.hpi')
          }
        }
      }
  }
  </code></pre>
  
  <p>But I'm wondering how to make that in the jenkinsfile ??</p>