title: How to mark jenkins build failed if JUnit test has an error?
body: <p>I need a workaround for this <a href="https://issues.jenkins-ci.org/browse/JENKINS-4951" rel="nofollow">Jenkins issue (JUnit report doesn't distinguish between test failures and errors)</a>.</p>
  
  <p>I thought of using the <a href="https://wiki.jenkins-ci.org/display/JENKINS/Groovy+Postbuild+Plugin#GroovyPostbuildPlugin-Example9%28thankstoKenBertelson%29" rel="nofollow">Groovy Postbuild Plugin</a> but it looks like this Jenkins "philosophy" is deeply integrated, i.e. <a href="http://javadoc.jenkins-ci.org/hudson/tasks/junit/TestResultAction.html" rel="nofollow">TestResultAction</a> doesn't even provide the tests in error.</p>
  
  <p>Any other ideas?</p>