java.lang.Object
io.jenkins.blueocean.service.embedded.rest.QueueUtil

public class QueueUtil extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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>
    T
    getRun(Job job, long queueId)
    Find a corresponding run for the queueId

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      @CheckForNull public static <T extends Run> T getRun(@NonNull Job job, long queueId)
      Find a corresponding run for the queueId
      Type Parameters:
      T - type of run
      Parameters:
      job - to search
      queueId - 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