title: Stop the pipeline when stage is unstable
body: <p>I have a Jenkins build pipeline created using workflow plugin.  At the beginning the pipeline runs a gulp  build inside of the docker container and then archives test results using the following code</p>
  
  <pre class="lang-groovy prettyprint-override"><code>step([$class: 'JUnitResultArchiver', testResults: 'build/test-results/*.xml'])
  </code></pre>
  
  <p>In the following steps I package up the artifacts and ship them to the binary repository.</p>
  
  <p>When unit tests are not passing Jenkins understands the build is unstable and marks it yellow.   However it still continues with subsequent steps in the pipeline.  Is there any way make the pipeline stop when unit tests are failing?</p>