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.