You can use the junit reporting plugin 
<https://wiki.jenkins-ci.org/display/JENKINS/JUnit+Plugin> to do this. Once 
you've installed it, you can call it with code like this:
    step([$class: 'JUnitResultArchiver', keepLongStdio: true, testResults: 
'target/test-reports/TEST*.xml'])

The snippet creator can help you when you select "step: General Build Step".

On Thursday, April 7, 2016 at 1:17:21 AM UTC-7, Frank Hask wrote:
>
> Hi all,
>
> i am creating build pipeline and i am stuck at the integration tests stage.
>
> This stage generates junit test results in XML format and if there are 
> some failures pipeline just ignores it and continue as usual. But i want to 
> stop pipeline and mark it as failure on test failure.
>
> I have exhausted all possible ways so i am posting this topic in hope that 
> someone has figured this out and wants to share it with community.
>

-- 
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/789fcaf9-ffc7-46e8-9e2e-cfd57dacef48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to