title: Copy build artifact between nodes using Jenkins pipeline
body: <p>I'm trying to move existing Jenkins build jobs to a single Jenkins 2 pipelines, and wondering if it's possible to copy files from one node to another within the build. My idea would be :</p>
  
  <pre><code>Node A (Windows)
    Checkout scm
    Execute ant build
    Archive artifact (or whatever required action)
  Node B (Unix)
    Checkout scm
    Copy build artifact from node A --&gt; is this possible ?
    Execute ant build
    Then followed by tests...
  </code></pre>
  
  <p>I've tried to use the copy artifact step, but it didn't seem to work correctly, so I'm wondering if there's a way to copy files in the middle of the pipeline, or if I have to stay with the current build architecture (using <a href="https://wiki.jenkins-ci.org/display/JENKINS/Copy+Artifact+Plugin" rel="noreferrer">copy artifact plugin</a>, but with completely separate build jobs).</p>