Hi,

 Do you use the junit plugin 
(https://wiki.jenkins-ci.org/display/JENKINS/JUnit+Plugin) in your jenkins 
job?

Cheers

On Wednesday, 6 January 2016 05:23:30 UTC+1, foolhunger Hsiao wrote:
>
> Hi, all
>
> I was trying to use groovy postbuild plugin to get test failure count, and 
> test pass count.
>
> But the testResultAction is always null, I have tried this on two Jenkins 
> instances, one with version 1.6+, another 1.5+.
>
> The script is simple:
> def failCnt = manager.build.testResultAction.failCount
>
> but throws null pointer exception since getTestResultAction is null.
>
> The build starts with one maven build (mvn clean test, with 5 total tests, 
> 3 failed tests), and I think the groovy script should be able to get the 
> testResult.
>
> Not sure what went wrong, many thanks.
>

-- 
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/ef7f7870-d5f2-4dcb-8d8d-417994d60570%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to