title: Jenkins CopyArtifact step - Unable to find project for artifact copy
body: <p>Based on <a href="https://stackoverflow.com/questions/36843215/how-can-i-use-the-jenkins-copy-artifacts-plugin-from-within-the-pipelines-jenki">this post</a>, I'm trying to test this pipeline code in my environment:</p>
  <pre><code>pipeline {
      agent any
      stages {
          stage ('push artifact') {
              steps {
                  sh '[ -d archive ] || mkdir archive'
                  sh 'echo test &gt; archive/test.txt'
                  sh 'rm -f test.zip'
                  zip zipFile: 'test.zip', archive: false, dir: 'archive'
                  archiveArtifacts artifacts: 'test.zip', fingerprint: true
              }
          }
  
          stage('pull artifact') {
              steps {
                  sh 'pwd'
                  sh 'ls -l'
                  sh 'env'
                  step([  $class: 'CopyArtifact',
                          filter: 'test.zip',
                          projectName: '${JOB_NAME}',
                          fingerprintArtifacts: true,
                          selector: [$class: 'SpecificBuildSelector', buildNumber: '${BUILD_NUMBER}']
                  ])
                  unzip zipFile: 'test.zip', dir: './archive_new'
                  sh 'cat archive_new/test.txt'
              }
          }
      }
  }
  </code></pre>
  <p>but it gives the error message:</p>
  <pre><code>ERROR: Unable to find project for artifact copy: test
  This may be due to incorrect project name or permission settings; see help for project name in job configuration.
  Finished: FAILURE
  </code></pre>
  <p>How can I fix his pipeline code?</p>