Skip to content
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

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

marmijo
Copy link
Member

@marmijo marmijo commented Dec 20, 2024

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.

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.
Copy link
Member

@aaradhak aaradhak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@marmijo marmijo merged commit ba0f037 into coreos:main Dec 20, 2024
2 checks passed
]
try {
echo "Triggering build for mechanical stream: ${it}"
build job: 'build', wait: true, parameters: [
Copy link
Member

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/

Copy link
Member Author

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.

#1077

marmijo added a commit to marmijo/fedora-coreos-pipeline that referenced this pull request Dec 20, 2024
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
marmijo added a commit to marmijo/fedora-coreos-pipeline that referenced this pull request Dec 20, 2024
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
dustymabe pushed a commit that referenced this pull request Dec 21, 2024
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants