Skip to content

Commit

Permalink
Set parent result based on child result (#4282)
Browse files Browse the repository at this point in the history
- fix the false positive issue caused by TAP parser

Fixes #4237

Signed-off-by: renfeiw <[email protected]>
  • Loading branch information
renfeiw authored Jan 27, 2023
1 parent bf2cc89 commit a7d24ce
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions buildenv/jenkins/JenkinsfileBase
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,6 @@ def run_parallel_tests() {
// cleanWs() does not work in some cases, so set opts below
cleanWs disableDeferredWipeout: true, deleteDirs: true
try {
def buildResult = ""
def buildPaths = ""
childJobs.each {
cjob ->
Expand All @@ -1120,12 +1119,10 @@ def run_parallel_tests() {
} catch (Exception e) {
echo 'Exception: ' + e.toString()
echo "Cannot copy *.tap or AQACert.log from ${name} with buildid ${buildId} . Skipping copyArtifacts..."
buildResult = childResult
}
}
if (buildResult) {
echo "set build status to ${buildResult}"
currentBuild.result = buildResult
if (!currentBuild.resultIsWorseOrEqualTo(childResult)) {
currentBuild.result = childResult;
}
}
archiveAQAvitFiles()
if (buildPaths.length() > 0) {
Expand Down

0 comments on commit a7d24ce

Please sign in to comment.