Skip to content

Commit 4e94ca0

Browse files
committed
Handle nested folder structure in Jenkins job
related: runtimes/automation/issues/630 Signed-off-by: Lan Xia <[email protected]>
1 parent 9eacff1 commit 4e94ca0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

TestResultSummaryService/parsers/ParentBuild.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,16 @@ class ParentBuild extends Parser {
3131
}
3232
regexBuilds.lastIndex = 0;
3333
let allBuilds = [];
34+
// For example:
35+
// Starting building: Test_openjdk11_j9_sanity.functional_x86-64_linux_testList_3 #54
36+
// Starting building: EBC » EBC_Complete #1127
37+
// Starting building: build-scripts » jobs » jdk11u » jdk11u-aix-ppc64-openj9 #1212
3438
while ((m = regexBuilds.exec(output)) !== null) {
3539
allBuilds = m[3].split(' » ');
3640
const buildName = allBuilds[allBuilds.length - 1];
3741
allBuilds.pop();
3842
let url = allBuilds.join('/job/');
39-
if (allBuilds.length > 1 && url.length > 0) {
43+
if (allBuilds.length > 0 && url.length > 0) {
4044
url = '/job/' + url;
4145
}
4246
const buildNameStr = m[1] ? m[1] : buildName;

0 commit comments

Comments
 (0)