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

JENKINS-23368 - Enforce start interval/delay between running builds. #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gcummings
Copy link

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

@cloudbees-pull-request-builder

plugins » throttle-concurrent-builds-plugin #37 SUCCESS
This pull request looks good

@jenkinsadmin
Copy link
Member

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests

@sergiopereiraTT
Copy link

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

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

@oleg-nenashev
Copy link
Member

The change would be useful.
Let's merge it into 1.9.x

@oleg-nenashev oleg-nenashev added this to the 1.9 milestone Oct 9, 2014
@oleg-nenashev oleg-nenashev mentioned this pull request Oct 9, 2014
@oleg-nenashev oleg-nenashev self-assigned this Apr 10, 2016
@oleg-nenashev
Copy link
Member

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.

@oleg-nenashev oleg-nenashev removed this from the 1.9 milestone Apr 10, 2016
Run<?,?> lastBuild = p.getLastBuild();
if (null != lastBuild && lastBuild.isBuilding()) {

// Probably better to use lastBuild.getStartTimeInMillis() which was introduced in Jenkins 1.494.
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants