Skip to content

Commit a90cb73

Browse files
authored
Setting upstream job status to the worst status of downstream jobs (#5969)
1 parent fb14d8e commit a90cb73

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

buildenv/jenkins/aqaTestPipeline.groovy

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ if (params.BUILD_TYPE == "nightly") {
3939
}
4040

4141
JOBS = [:]
42-
fail = false
4342

4443
timestamps {
4544
JDK_VERSIONS.each { JDK_VERSION ->
@@ -85,9 +84,6 @@ timestamps {
8584
}
8685
}
8786
parallel JOBS
88-
if (fail) {
89-
currentBuild.result = "FAILURE"
90-
}
9187
}
9288

9389
def generateJobs(jobJdkVersion, jobTestFlag, jobPlatforms, jobTargets, jobParallel) {
@@ -313,13 +309,11 @@ def generateJobs(jobJdkVersion, jobTestFlag, jobPlatforms, jobTargets, jobParall
313309
}
314310
}
315311
}
316-
if (downstreamJobResult != "SUCCESS") {
317-
fail = true
318-
}
312+
currentBuild.result = downstreamJobResult
319313
}
320314
} else {
321315
println "Requested test job that does not exist or is disabled: ${TEST_JOB_NAME}. \n To generate the job, pelase set AUTO_AQA_GEN = true"
322-
fail = true
316+
currentBuild.result = "FAILURE"
323317
}
324318
}
325319
}

0 commit comments

Comments
 (0)