Class QueueUtil
java.lang.Object
io.jenkins.blueocean.service.embedded.rest.QueueUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic io.jenkins.blueocean.rest.model.BlueQueueItem
getQueuedItem
(io.jenkins.blueocean.rest.model.BlueOrganization organization, Queue.Item item, Job job) static List<io.jenkins.blueocean.rest.model.BlueQueueItem>
getQueuedItems
(io.jenkins.blueocean.rest.model.BlueOrganization organization, Job job) This function gets gets a list of all queued items if the job is a buildable item.static <T extends Run>
TFind a corresponding run for the queueId
-
Method Details
-
getQueuedItem
public static io.jenkins.blueocean.rest.model.BlueQueueItem getQueuedItem(io.jenkins.blueocean.rest.model.BlueOrganization organization, Queue.Item item, Job job) -
getRun
Find a corresponding run for the queueId- Type Parameters:
T
- type of run- Parameters:
job
- to searchqueueId
- of the item- Returns:
- the run or null
-
getQueuedItems
public static List<io.jenkins.blueocean.rest.model.BlueQueueItem> getQueuedItems(io.jenkins.blueocean.rest.model.BlueOrganization organization, Job job) This function gets gets a list of all queued items if the job is a buildable item. Note the estimated build number calculation is a guess - job types need not return sequential build numbers.- Returns:
- List of items newest first
-