We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3dec9b commit 48ed774Copy full SHA for 48ed774
buildenv/jenkins/JenkinsfileBase
@@ -699,9 +699,11 @@ def runTest( ) {
699
def resultSum = [:]
700
def matcher = manager.getLogMatcher(".*(TOTAL: \\d+)\\s*(EXECUTED: \\d+)\\s*(PASSED: \\d+)\\s*(FAILED: \\d+)\\s*(DISABLED: \\d+)?\\s*(SKIPPED: \\d+)\\s*\$")
701
if (matcher?.matches()) {
702
- for (int i = 1; i < matcher.groupCount(); i++) {
703
- def matchVals = matcher.group(i).split(": ")
704
- resultSum[matchVals[0]] = matchVals[1] as int
+ for (int i = 1; i <= matcher.groupCount(); i++) {
+ if (matcher.group(i) != null) {
+ def matchVals = matcher.group(i).split(": ")
705
+ resultSum[matchVals[0]] = matchVals[1] as int
706
+ }
707
}
708
checkTestResults(resultSum)
709
} else {
0 commit comments