title: Not able to display JUnit tests result in Jenkins Pipeline
body: <p>I have a piece of Jenkins pipeline code in which I am trying to run JUnit on my angular code.</p>
  
  <p>If the unit tests fail, Jenkins has to stop the pipeline.
  It's working except I am not able to see "Latest test Result" and "Test Result Trend"</p>
  
  <p>I am using Jenkins 2.19.1, Jenkins Pipeline 2.4 and Junit 1.19. Here is the pipeline code:</p>
  
  <pre><code>{
          sh("npm install -g gulp bower")
          sh("npm install")
          sh("bower install")    
          try {
              sh("gulp test")
          } catch (err) {
              step([$class: 'JUnitResultArchiver', testResults: '**/reports/junit/*.xml', healthScaleFactor: 1.0])
              junit '**/reports/junit/*.xml'
              if (currentBuild.result == 'UNSTABLE')
                  currentBuild.result = 'FAILURE'
              throw err
          }
      }
  </code></pre>
  
  <p>Any idea what I am doing wrong?</p>