/** * Returns true if this queue contains the said project. */ public boolean contains(Task t) { return getItem(t)!=null; }
/** * Returns the first queue item if the owner is scheduled for execution in the queue. */ public Item getQueuedItem() { return Jenkins.getInstance().getQueue().getItem(owner); }
@Override public Queue.Item getQueueItem() { return Jenkins.getInstance().getQueue().getItem(this); }
/** * Called from {@code queue.jelly} and {@code entries.jelly}. */ @RequirePOST public HttpResponse doCancelItem(@QueryParameter long id) throws IOException, ServletException { Item item = getItem(id); if (item != null) { if(item.hasCancelPermission()){ cancel(item); } } // else too late, ignore (JENKINS-14813) return HttpResponses.forwardToPreviousPage(); }
/** * Returns true if this queue contains the said project. */ public boolean contains(Task t) { return getItem(t)!=null; }
@Override @CheckForNull public Queue.Item itemInQueue() { return Queue.getInstance().getItem(id); } }
/** * Returns the first queue item if the owner is scheduled for execution in the queue. */ public Item getQueuedItem() { return Hudson.getInstance().getQueue().getItem(owner); }
@Override public Queue.Item getQueueItem() { return Hudson.getInstance().getQueue().getItem(this); }
/** * Returns the first queue item if the owner is scheduled for execution in the queue. */ public Item getQueuedItem() { return Hudson.getInstance().getQueue().getItem(owner); }
/** * Returns the first queue item if the owner is scheduled for execution in * the queue. */ public Item getQueuedItem() { return Hudson.getInstance().getQueue().getItem(owner); }
/** * Returns the first queue item if the owner is scheduled for execution in the queue. */ public Item getQueuedItem() { return Hudson.getInstance().getQueue().getItem(owner); }
/** * Returns the first queue item if the owner is scheduled for execution in the queue. */ public Item getQueuedItem() { return Jenkins.getInstance().getQueue().getItem(owner); }
@Override public Queue.Item getQueueItem() { return Jenkins.getInstance().getQueue().getItem(this); }
/** * Called from {@code queue.jelly} and {@code entries.jelly}. */ @RequirePOST public HttpResponse doCancelItem(@QueryParameter long id) throws IOException, ServletException { Item item = getItem(id); if (item != null) { cancel(item); } // else too late, ignore (JENKINS-14813) return HttpResponses.forwardToPreviousPage(); }
@Override public String toString() { Queue.Item item = Queue.getInstance().getItem(itemID); if (item != null) { return "Trying to schedule " + task.getFullDisplayName() + "; blockage: " + item.getCauseOfBlockage(); } else { return "Trying to locate queue item #" + itemID; } } };
public String getTooltip() { final Build r = getRun(); if (r != null) { return r.getIconColor().getDescription(); } final Queue.Item item = Jenkins.getInstance().getQueue().getItem(this.dynamicBuild.getParent().getItem(this.combination)); if (item != null) { return item.getWhy(); } return null; // fall back } }
public String getTooltip() { MatrixRun r = getRun(); if (r != null) { return r.getIconColor().getDescription(); } Queue.Item item = Hudson.getInstance().getQueue().getItem(getParent().getItem(combination)); if (item != null) { return item.getWhy(); } return null; // fall back }
public String getTooltip() { MatrixRun r = getRun(); if (r != null) { return r.getIconColor().getDescription(); } Queue.Item item = Hudson.getInstance().getQueue().getItem(getParent().getItem(combination)); if (item != null) { return item.getWhy(); } return null; // fall back }
public String getTooltip() { MatrixRun r = getRun(); if (r != null) { return r.getIconColor().getDescription(); } Queue.Item item = Hudson.getInstance().getQueue().getItem(getParent().getItem(combination)); if (item != null) { return item.getWhy(); } return null; // fall back }
public String getTooltip() { MatrixRun r = getRun(); if (r != null) { return r.getIconColor().getDescription(); } Queue.Item item = Hudson.getInstance().getQueue().getItem(getParent().getItem(combination)); if (item != null) { return item.getWhy(); } return null; // fall back }