title: Copy artifact within a jenkins pipeline
body: <p>I have a Jenkins pipeline job that archives an Artifact in its first phase, I then need to copy that Artifact in another stage of the pipeline build</p>
  
  <pre><code>node {
    stage 'Stage 1 of build'
    // Run tests, if successful archive the artifact
    archiveArtifacts artifacts: 'build/test.js', excludes: null
   stage 'Stage 2 of build'
   // want to copy artifact from stage 1 of the build
   step([$class: 'CopyArtifact', filter: 'build/test.js', fingerprintArtifacts: true, flatten: true, projectName: 'echo-develop-js-pipeline', selector: [$class: 'WorkspaceSelector'], target: './client/public/vendor/echo/'])
  }
  </code></pre>
  
  <p>With this I get a <code>unable to find a build for artifact copy</code></p>
  
  <p>When the artifact is created it is saved here:</p>
  
  <pre><code>http://localhost:8181/view/Echo JS Develop/job/echo-develop-js-pipeline/233/artifact/build/test.js
  </code></pre>
  
  <p>How do I access the created artifact from within a pipeline job?</p>