-
Notifications
You must be signed in to change notification settings - Fork 111
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-23368 - Enforce start interval/delay between running builds. #21
base: master
Are you sure you want to change the base?
Conversation
plugins » throttle-concurrent-builds-plugin #37 SUCCESS |
Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests |
I'd love this feature too. Is this PR still being reviewed/considered? |
@@ -57,10 +58,12 @@ public ThrottleJobProperty(Integer maxConcurrentPerNode, | |||
List<String> categories, | |||
boolean throttleEnabled, | |||
String throttleOption, | |||
@CheckForNull ThrottleMatrixProjectOptions matrixOptions | |||
@CheckForNull ThrottleMatrixProjectOptions matrixOptions, | |||
Long startInterval |
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.
An old constructor is also required for the backward compatibility
The change would be useful. |
The pull request needs some polishing for the initialization flows. Now it stores null till the first getter invocation. readResolve() would be helpful. I'm also aware about exposing Long to the external interface. |
Run<?,?> lastBuild = p.getLastBuild(); | ||
if (null != lastBuild && lastBuild.isBuilding()) { | ||
|
||
// Probably better to use lastBuild.getStartTimeInMillis() which was introduced in Jenkins 1.494. |
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.
The core dependency has been bumped, hence it can be updated now
Hi,
This is to enable a configurable interval/delay between start of concurrent builds for a project.
More detail of available in Jira: https://issues.jenkins-ci.org/browse/JENKINS-23368
feedback and questions welcome
thanks
Geoff