Skip to content

Commit

Permalink
Update the result sum match to be more precise
Browse files Browse the repository at this point in the history
- to filter user commented summary

Signed-off-by: renfeiw <renfeiw@ca.ibm.com>
  • Loading branch information
renfeiw committed Apr 13, 2023
1 parent 4fd9cfa commit 409875c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildenv/jenkins/JenkinsfileBase
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ def runTest( ) {
}

def resultSum = [:]
def matcher = manager.getLogMatcher(".*(TOTAL: \\d+)\\s*(EXECUTED: \\d+)\\s*(PASSED: \\d+)\\s*(FAILED: \\d+)\\s*(DISABLED: \\d+)?\\s*(SKIPPED: \\d+).*")
def matcher = manager.getLogMatcher(".*(TOTAL: \\d+)\\s*(EXECUTED: \\d+)\\s*(PASSED: \\d+)\\s*(FAILED: \\d+)\\s*(DISABLED: \\d+)?\\s*(SKIPPED: \\d+)\\s*\$")
if (matcher?.matches()) {
for (int i = 1; i < matcher.groupCount(); i++) {
def matchVals = matcher.group(i).split(": ")
Expand Down

0 comments on commit 409875c

Please sign in to comment.