-
Notifications
You must be signed in to change notification settings - Fork 139
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
[JENKINS-54052] Honor quietPeriod on children of multibranch pipeline job #190
Conversation
@g-doc This is great! Still 3 test failures. Can your reproduce them locally? |
Build was clean on rerun. Trying again to see if we are stable. |
Any chance this could be re-examined? The test failure looks like failed infra (channel closed). |
This would be useful in GitHub if one has a GitHub Action that pushes a commit to one's PR -- to prevent the the PR from building prior to the GH Actions adding the new commit. Can it be resuscitated? |
Now, that the build has been successful on three consecutive runs, are we good to merge? |
@@ -47,6 +47,11 @@ public BasicBranchProjectFactory() { | |||
public FreeStyleProject newInstance(Branch branch) { | |||
FreeStyleProject job = new FreeStyleProject(getOwner(), branch.getEncodedName()); | |||
setBranch(job, branch); | |||
try { | |||
job.setQuietPeriod(0); |
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.
For test stability we maintain the previous quiet period of 0
. But live behavior will change.
I approve, but I'm thinking this through a bit deeper. We should get some additional testing, both manual and running other plugin tests using this version. |
@bitwiseman, I have performed some quick manual tests with
The following are my observations:
I can help with further manual testing based on your inputs. |
Okay, we now have an incremental that we can work with: branch-api/2.5.9-rc884.9435363784d2. |
@Addib
Yay!
This is expected/known behavior, similar to the way build parameters work in declarative. It is due to a limitation in Jenkins.
This is probably a bug in that plugin that should be filed and fixed separately.
This is a separate issue. Please file it on the Jenkins JIRA with screenshots (if it hasn't already been filed). |
I'm trying this with some downstream plugins, starting with branch-api. Look like there's one automated test that fails with this change. Not sure why yet. |
Found this in searching for a solution to multiple merges coming in at once on github. Not a typical merge pattern for feature PRs...but with PRs made by dependabot doing a bunch of minor bumps on a regular cadence seems to be common. Not sure how to help. Would running an RC be useful? |
The failure in jenkinsci/workflow-multibranch-plugin#99 should be fixed now. @hemp |
We've had this live today and I reviewed our build history. This is working great with a 30 second quiet period for a github org with a few hundred repos. Merging multiple dependabot PRs (highs / criticals) can now be automated. Thanks! 🎉 |
…itor (#2132) * [JENKINS-58732] Remove docker-workflow dep from blueocean-pipeline-editor * Was not correctly excluding snakeyaml from uap-java * Also had a deps problem on json from unirest-java * Adapt to jenkinsci/branch-api-plugin#190
Updated PR with change provided in comments of
full credits to @atanasenko in PR #131