title: Accessing information from previous Jenkins pipeline run
body: <p>I have a pipeline set up that builds multiple project configurations. The order of building the confgurations doesn't matter, all that matters is whether all builds succeeded.</p>
  
  <p>What I'd like to know is to which build configuration failed in the previous run of the pipeline (if the pipeline failed). The plan is to use this information to start the next build from that configuration, as it's likely the one which is going to fail again. I can already access previous pipeline build status using <code>currentBuild.getPreviousBuild().result</code>. Either of the following would work for me:</p>
  
  <ol>
  <li>Is it possible to store information between pipeline runs (full runs, not pipeline stages in the same run)?</li>
  </ol>
  
  <p>or</p>
  
  <ol start="2">
  <li>Is it possible to get the stage at which previous pipeline has failed on?</li>
  </ol>