Change-Id: Iaafab2ce248701bbd1910177e2f493b814502b8a
<org.jvnet.hudson.plugins.groovypostbuild.GroovyPostbuildRecorder plugin="groovy-postbuild@1.8">
<groovyScript>def run = Thread.currentThread().executable
def en = run.getEnvironment()
-manager.addShortText("Image " + en["IMAGE"] + " - " + en["TEST_RESULT"])</groovyScript>
+manager.addShortText("Image " + en["IMAGE"] + " - " + en["TEST_RESULT"])
+if (en["TEST_RESULT"] != "PASS")
+ manager.buildFailure()</groovyScript>
<behavior>0</behavior>
</org.jvnet.hudson.plugins.groovypostbuild.GroovyPostbuildRecorder>
</publishers>