-
Type:
Improvement
-
Status: Resolved (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Component/s: throttle-concurrent-builds-plugin
-
Labels:
-
Environment:Jenkins v1.634
WorkFlow: Aggregator v1.11
Throttle Concurrent Builds Plug-in v1.8.4
-
Similar Issues:
-
Epic Link:
I am looking to use Throttle Concurrent Builds in a WorkFlow. I have jobs that perform automated, scheduled testing, as well as user-initiated jobs. All these jobs compete for the same set of hardware resources to run tests against. I'm currently using BuildFlows for all this and Throttle Concurrent Builds works fine. My problem is that I want to use the WorkFlow plugin for the automated jobs but TCB does not natively support WorkFlows.
I've read that people dedicate a Node per unit of hardware to solve this problem. That's not a good solution for me since I can have 10-20 hardware units. I've also ready about people using a WorkFlow Stage, but this also doesn't work because of the user-initiated jobs that are outside of the WorkFlow.
I've seen a presentation by CloudBees that appears to indicate that a WorkFlow can be used with any plugin, even if the plugin does not have native WorkFlow support. Is this possible for TCB and/or is there TCB support planned for WorkFlow?
Thanks,
Dave
- is duplicated by
-
JENKINS-37809 Throttling based on parameters does not work in Pipelines
-
- Reopened
-
- is related to
-
JENKINS-26125 Throttled slave usage step
-
- Resolved
-
- links to
Code changed in jenkins
User: Andrew Bayer
Path:
pom.xml
src/main/java/hudson/plugins/throttleconcurrents/ThrottleJobProperty.java
src/main/java/hudson/plugins/throttleconcurrents/ThrottleQueueTaskDispatcher.java
src/main/java/hudson/plugins/throttleconcurrents/pipeline/ThrottleStep.java
src/main/java/hudson/plugins/throttleconcurrents/pipeline/ThrottleStepExecution.java
src/main/resources/hudson/plugins/throttleconcurrents/Messages.properties
src/main/resources/hudson/plugins/throttleconcurrents/ThrottleJobProperty/help.html
src/main/resources/hudson/plugins/throttleconcurrents/pipeline/Messages.properties
src/main/resources/hudson/plugins/throttleconcurrents/pipeline/ThrottleStep/config.jelly
src/main/resources/hudson/plugins/throttleconcurrents/pipeline/ThrottleStep/help-categories.html
src/test/java/hudson/plugins/throttleconcurrents/ThrottleConcurrentTest.java
src/test/java/hudson/plugins/throttleconcurrents/ThrottleStepTest.java
http://jenkins-ci.org/commit/throttle-concurrent-builds-plugin/0bbd0792eb88ff33c81cc0efa5e04b651542fb6d
Log:
JENKINS-31801Add Pipeline throttle(category) step (#46)JENKINS-31801Initial work on throttle(category) step - needs testsNeeded to bump to newer dependency versions, most notably to get
PlaceholderTask.getNode(). Still a work in progress, mind you.
Also discovered that Run<?,?> is a very bad Map key.