@Extension
public class ProvisionQueueListener
extends hudson.model.queue.QueueListener
Cloud API is designed to launch virtual machines, which is an heavy process, so relies on
 NodeProvisioner to determine when a new slave is required. Here we want the slave to start just as a job
 enter the build queue. As an alternative we listen the Queue for Jobs to get scheduled, and when label match
 immediately start a fresh new container executor with a unique label to enforce exclusive usage.| Constructor and Description | 
|---|
| ProvisionQueueListener() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | onEnterBuildable(hudson.model.Queue.BuildableItem item) | 
| void | onLeft(hudson.model.Queue.LeftItem item)If item is canceled, remove the executor we created for it. | 
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.