-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jobs/build-mechanical: schedule at off-peak and run builds serially #1076
Conversation
Adjust the cron schedule trigger to start at 2am UTC every day to run this job at off-peak times. Also, run the scheduled builds serially by waiting for each build to finish before starting the next one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
] | ||
try { | ||
echo "Triggering build for mechanical stream: ${it}" | ||
build job: 'build', wait: true, parameters: [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can add propagate: false
and we won't need a try/catch
here.
https://www.jenkins.io/doc/pipeline/steps/pipeline-build-step/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, good point! That does seem like it'll be a simpler solution.
Instead of the try/catch block, use `propagate: false` instead to wait for the build to complete before moving on to the next one. follow-on to: coreos#1076
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: coreos#1076
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
Adjust the cron schedule trigger to start at 2am UTC every day to run this job at off-peak times. Also, run the scheduled builds serially by waiting for each build to finish before starting the next one.