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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/5dd453d2-1b62-468f-80c5-98ef14e9fe6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to