Skip to content

Commit 86b0e6a

Browse files
marmijodustymabe
authored andcommitted
jobs/build-mechanical: use propagate: false to wait for build
If a scheduled build fails, the build-mechanical job will fail. Instead of the try/catch block to solve this, use `propagate: false` instead to build each scheduled stream regardless of the build result. follow-on to: #1076
1 parent ba0f037 commit 86b0e6a

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

jobs/build-mechanical.Jenkinsfile

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,10 @@ node {
2525
}
2626

2727
mechanical_streams.each{
28-
try {
29-
echo "Triggering build for mechanical stream: ${it}"
30-
build job: 'build', wait: true, parameters: [
31-
string(name: 'STREAM', value: it),
32-
booleanParam(name: 'EARLY_ARCH_JOBS', value: false)
33-
]
34-
} catch (e) {
35-
echo "Build failed for mechanical stream: ${it}"
36-
}
28+
echo "Triggering build for mechanical stream: ${it}"
29+
build job: 'build', wait: true, propagate: false, parameters: [
30+
string(name: 'STREAM', value: it),
31+
booleanParam(name: 'EARLY_ARCH_JOBS', value: false)
32+
]
3733
}
3834
}

0 commit comments

Comments
 (0)