title: Use stash in Jenkins pipeline without node
body: <p>I have a Jenkins pipeline looking like this</p>
  
  <pre><code>stage 'build app'
  build 'app-build'
  stash 'app-stash'
  
  stage 'build container'
  unstash 'app-stash'
  build 'container-build'
  </code></pre>
  
  <p>The builds <code>app-build</code> and <code>container-build</code> obtain new nodes from our Kubernetes system.</p>
  
  <p>With <a href="https://jenkins.io/doc/pipeline/steps/workflow-basic-steps/#code-stash-code-stash-some-files-to-be-used-later-in-the-build" rel="nofollow noreferrer">stash</a> I want to transfer the artifacts from <code>app-build</code> to <code>container-build</code>.</p>
  
  <p>However when running this pipeline the following error occurs:</p>
  
  <pre><code>[Pipeline] stash
  Required context class hudson.FilePath is missing
  Perhaps you forgot to surround the code with a step that provides this, such as: node
  [Pipeline] End of Pipeline
  org.jenkinsci.plugins.workflow.steps.MissingContextVariableException: Required context class hudson.FilePath is missing
      at org.jenkinsci.plugins.workflow.steps.StepDescriptor.checkContextAvailability(StepDescriptor.java:254)
      at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:179)
  </code></pre>
  
  <p>I don't want to use <a href="https://jenkins.io/doc/pipeline/steps/workflow-durable-task-step/#code-node-code-allocate-node" rel="nofollow noreferrer"><code>node</code></a> in my pipeline since I only have one executor on my nodes.
  Is it possible to use <code>stash</code> without the <code>node</code> directive?</p>