Class BlueQueueItem

java.lang.Object
io.jenkins.blueocean.rest.model.Resource
io.jenkins.blueocean.rest.model.BlueQueueItem
All Implemented Interfaces:
Reachable

public abstract class BlueQueueItem extends Resource
This class models an item waiting in the queue for an executor so that it can run.
Author:
Ivan Meredith
  • Field Details

  • Constructor Details

    • BlueQueueItem

      public BlueQueueItem()
  • Method Details

    • getId

      @Exported(name="id") public abstract String getId()
      Returns:
      Id of the item in the queue. Much be unique in the queue of a pipeline
    • getOrganization

      @Exported(name="organization") public abstract String getOrganization()
    • getPipeline

      @Exported(name="pipeline") public abstract String getPipeline()
      Returns:
      pipeline this queued item belongs too
    • getQueuedTime

      public abstract Date getQueuedTime()
      Returns:
      Time the item entered the queue.
    • getQueuedTimeString

      @Exported(name="queuedTime") public abstract String getQueuedTimeString()
    • getExpectedBuildNumber

      @Exported(name="expectedBuildNumber") public abstract int getExpectedBuildNumber()
      Returns:
      The expected build number of the build. This may change.
    • delete

      @WebMethod(name="") @DELETE public abstract void delete()
      Remove a queued item
    • getCauses

      @Exported(name="cause") public abstract Collection<BlueRun.BlueCause> getCauses()
      Returns:
      causes for this item to be queued
    • getCauseOfBlockage

      @Exported(name="causeOfBlockage") public abstract String getCauseOfBlockage()
      Returns:
      Gives reason of blockage if run is in QUEUED state
    • toRun

      public abstract BlueRun toRun()
      Returns:
      a run object representing this queued item