Skip to content

Commit

Permalink
jobs/build-mechanical: use propagate: false to wait for build
Browse files Browse the repository at this point in the history
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
  • Loading branch information
marmijo committed Dec 20, 2024
1 parent ba0f037 commit 38e4048
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions jobs/build-mechanical.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,10 @@ node {
}

mechanical_streams.each{
try {
echo "Triggering build for mechanical stream: ${it}"
build job: 'build', wait: true, parameters: [
string(name: 'STREAM', value: it),
booleanParam(name: 'EARLY_ARCH_JOBS', value: false)
]
} catch (e) {
echo "Build failed for mechanical stream: ${it}"
}
echo "Triggering build for mechanical stream: ${it}"
build job: 'build', wait: true, propagate: false, parameters: [
string(name: 'STREAM', value: it),
booleanParam(name: 'EARLY_ARCH_JOBS', value: false)
]
}
}

0 comments on commit 38e4048

Please sign in to comment.