Please sign in to comment.
[JENKINS-31801] Add Pipeline throttle(category) step (#46)
* [JENKINS-31801] Initial work on throttle(category) step - needs tests * Reworked to no longer rely on StepExecutions. * Add a trailing newline to messages. * Make findbugs happy. * Whoops, this needs to take a block * Initial test, actually working Needed to bump to newer dependency versions, most notably to get PlaceholderTask.getNode(). Still a work in progress, mind you. * Cleanup, commenting, javadoc * Test across all nodes Also discovered that Run<?,?> is a very bad Map key. * Add interop with freestyle test * Add snippet generator support. * Add snippetizer support and test * Review comments * Check for pending PlaceholderTasks as well. * Allow multiple comma-separated categories * Minor review responses, moving step UI to correct dir * Go away, empty category names! * Fixed up snippetizer, switched to a list of strings for the throttle step * Check for and respond to duplicate or non-existent category names * Adding help for ThrottleJobProperty pointing out it doesn't work for Pipeline * unmodifiableList
- Loading branch information
Showing with 1,248 additions and 139 deletions.
- +68 −17 pom.xml
- +226 −17 src/main/java/hudson/plugins/throttleconcurrents/ThrottleJobProperty.java
- +273 −104 src/main/java/hudson/plugins/throttleconcurrents/ThrottleQueueTaskDispatcher.java
- +76 −0 src/main/java/hudson/plugins/throttleconcurrents/pipeline/ThrottleStep.java
- +122 −0 src/main/java/hudson/plugins/throttleconcurrents/pipeline/ThrottleStepExecution.java
- +3 −1 src/main/resources/hudson/plugins/throttleconcurrents/Messages.properties
- +4 −0 src/main/resources/hudson/plugins/throttleconcurrents/ThrottleJobProperty/help.html
- +1 −0 src/main/resources/hudson/plugins/throttleconcurrents/pipeline/Messages.properties
- +18 −0 src/main/resources/hudson/plugins/throttleconcurrents/pipeline/ThrottleStep/config.jelly
- +3 −0 src/main/resources/hudson/plugins/throttleconcurrents/pipeline/ThrottleStep/help-categories.html
- +2 −0 src/test/java/hudson/plugins/throttleconcurrents/ThrottleConcurrentTest.java
- +452 −0 src/test/java/hudson/plugins/throttleconcurrents/ThrottleStepTest.java
Oops, something went wrong.