You can use my shared library for this: 
https://github.com/roel0/jenkins-util-scripts

Example usage:
if (get_junit_results().failed.size()) {
     error "some tests have failed" // <- Will set build result to FAILED
}

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/521622e7-c6cf-4543-82af-9cbc8860c1c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to