title: How to force Jenkins to skip a downstream job if a new build is waiting in the pipeline?
body: <p>My build pipeline in Jenkins is broken down into three jobs:</p>
  
  <ol>
  <li>Build code</li>
  <li>Deploy code to environment</li>
  <li>Run automated functional tests</li>
  </ol>
  
  <p>I have set it up so that concurrent builds can occur and the build pipeline will stop a build from entering #2, if #2 or #3 is currently running for another build. </p>
  
  <p>What I want to be able to do is set up Jenkins to handle when there is more than one build waiting, and #2 and #3 finish, for only the LATEST build to enter into #2 and #3. </p>
  
  <p>Is there a way to do this out of the box? IF you have the book Continuous Delivery, what I'm trying to do is implement what's on p. 118 - p. 119</p>