@Extension
public class OneShotExecutorQueueListener
extends hudson.model.queue.QueueListener
QueueListener is responsible for detecting jobs that are relying on a One-Shot executor.
When a task becomes buildable, it check all configured $OneShotProvisioner to determine if task do
match one of them criteria, then provision a $OneShotSlave and assign it's name to the task as a
label. As a result, the task won't be assigned to any executor but the one it just created.| Modifier and Type | Field and Description |
|---|---|
static hudson.model.listeners.RunListener<hudson.model.Run> |
LISTENER |
| Constructor and Description |
|---|
OneShotExecutorQueueListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onEnterBuildable(hudson.model.Queue.BuildableItem item)
As an item enter the queue, provision a dedicated "one-shot" executor to host the build.
|
void |
onLeft(hudson.model.Queue.LeftItem item)
If item is canceled, remove the executor we created for it.
|
@Extension public static final hudson.model.listeners.RunListener<hudson.model.Run> LISTENER
public void onEnterBuildable(hudson.model.Queue.BuildableItem item)
onEnterBuildable in class hudson.model.queue.QueueListenerpublic void onLeft(hudson.model.Queue.LeftItem item)
onLeft in class hudson.model.queue.QueueListenerCopyright © 2016–2017. All rights reserved.