title: Correct usage of stash\unstash into a different directory
body: <p>In one of my stages I need to copy the contents of two folders after a build is completed and copy to a different directory.</p>
  
  <p>I am actually converting a freestyle job to pipeline, and have been using the artifact deployer plugin. Reading around, it looks like stash and unstash commands should help with what I want to achieve.</p>
  
  <p>Can someone verify if this is the correct approach below please?</p>
  
  <pre class="lang-groovy prettyprint-override"><code>stage('Build') {
        steps {
          sh '''
            gulp set-staging-node-env
            gulp prepare-staging-files
            gulp webpack
          '''
          stash includes: '/dist/**/*', name: 'builtSources'
          stash includes: '/config/**/*', name: 'appConfig'
          dir('/some-dir') {
            unstash 'builtSources'
            unstash 'appConfig'
          }
        }
      }
  </code></pre>
  
  <p>If I change dir in one stage, does that mean all other stages thereafter will try to execute commands from that directory, or do they do back to using the workspace default location?</p>
  
  <p>Thanks</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I have realised what I actually want to do is to copy built sources to a different node (running a different OS). So in my snippet I have shared, where I am switching directories, that directory is actually to be on a different machine (node) that I have setup.</p>
  
  <p>Would I need to wrap the <code>dir()</code> block with a <code>node('my-node-name')</code> block? Im struggling to find examples.</p>
  
  <p>Thanks</p>