Codota Logo
Queue$Item.getAllActions
Code IndexAdd Codota to your IDE (free)

How to use
getAllActions
method
in
hudson.model.Queue$Item

Best Java code snippets using hudson.model.Queue$Item.getAllActions (Showing top 4 results out of 315)

  • Common ways to obtain Queue$Item
private void myMethod () {
Queue$Item q =
  • Codota IconHudson.getInstance().getQueue().getItem(this)
  • Codota IconQueue.ItemList queueItemList;Queue.Task p;queueItemList.cancel(p)
  • Codota IconMatrixConfiguration matrixConfiguration;matrixConfiguration.getQueueItem()
  • Smart code suggestions by Codota
}
origin: jenkinsci/jenkins

shouldScheduleItem |= action.shouldSchedule((new ArrayList<Action>(item.getAllActions())));
a.foldIntoExisting(item, p, actions);
if (LOGGER.isLoggable(Level.FINE)) {
  LOGGER.log(Level.FINE, "after folding {0}, {1} includes {2}", new Object[] {a, item, item.getAllActions()});
origin: org.jenkins-ci.main/jenkins-core

protected Item(Item item) {
  this(item.task, new ArrayList<Action>(item.getAllActions()), item.id, item.future, item.inQueueSince);
}
origin: org.jenkins-ci.main/jenkins-core

shouldScheduleItem |= action.shouldSchedule((new ArrayList<Action>(item.getAllActions())));
a.foldIntoExisting(item, p, actions);
if (LOGGER.isLoggable(Level.FINE)) {
  LOGGER.log(Level.FINE, "after folding {0}, {1} includes {2}", new Object[] {a, item, item.getAllActions()});
origin: KostyaSha/github-integration-plugin

/**
 * Cancel previous builds for specified PR id.
 */
private static boolean cancelQueuedBuildByBranchName(final String branch) {
  Queue queue = getJenkinsInstance().getQueue();
  for (Queue.Item item : queue.getItems()) {
    Optional<Cause> cause = from(item.getAllActions())
        .filter(instanceOf(CauseAction.class))
        .transformAndConcat(new CausesFromAction())
        .filter(instanceOf(GitHubBranchCause.class))
        .firstMatch(new CauseHasBranch(branch));
    if (cause.isPresent()) {
      queue.cancel(item);
      return true;
    }
  }
  return false;
}
hudson.modelQueue$ItemgetAllActions

Popular methods of Queue$Item

  • getAction
  • getCauses
    Convenience method that returns a read only view of the Causes associated with this item in the queu
  • getId
    Unique ID (per master) that tracks the Task as it moves through different stages in the queue (each
  • getWhy
    Gets a human-readable status message describing why it's in the queue.
  • getFuture
    Can be used to wait for the completion (either normal, abnormal, or cancellation) of the Task. Just
  • getActions
  • getCauseOfBlockage
    Gets an object that describes why this item is in the queue.
  • addAction
  • getUrl
    Returns the URL of this Item relative to the context path of Jenkins
  • getInQueueSince
    Since when is this item in the queue.
  • onCancelled
    Participates in the cancellation logic to set the #future accordingly.
  • getInQueueForString
    Returns a human readable presentation of how long this item is already in the queue. E.g. something
  • onCancelled,
  • getInQueueForString,
  • isBlocked,
  • isBuildable,
  • addOrReplaceAction,
  • cancel,
  • enter,
  • getAssignedLabel,
  • getAssignedLabelFor

Popular in Java

  • Making http requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onCreateOptionsMenu (Activity)
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Runner (org.openjdk.jmh.runner)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now