Tabnine Logo
AbstractFolder.getAllJobs
Code IndexAdd Tabnine to your IDE (free)

How to use
getAllJobs
method
in
com.cloudbees.hudson.plugins.folder.AbstractFolder

Best Java code snippets using com.cloudbees.hudson.plugins.folder.AbstractFolder.getAllJobs (Showing top 3 results out of 315)

origin: org.jenkins-ci.plugins/cloudbees-folder

/**
 * Allows a subclass to block renames under dynamic conditions.
 * @return a message if rename should currently be prohibited, or null to allow
 */
@CheckForNull
protected String renameBlocker() {
  for (Job<?,?> job : getAllJobs()) {
    if (job.isBuilding()) {
      return "Unable to rename a folder while a job inside it is building.";
    }
  }
  return null;
}
origin: jenkinsci/cloudbees-folder-plugin

/**
 * {@inheritDoc}
 */
@Override
protected void checkRename(String newName) {
  for (Job<?,?> job : getAllJobs()) {
    if (job.isBuilding()) {
      throw new Failure("Unable to rename a folder while a job inside it is building.");
    }
  }
  String blocker = renameBlocker();
  if (blocker != null) {
    throw new Failure(blocker);
  }
}
origin: jenkinsci/multi-branch-project-plugin

/**
 * Calculates the color of the status ball for the owner based on its descendants.
 * <br>
 * Kanged from Branch API (original author Stephen Connolly).
 *
 * @return the color of the status ball for the owner.
 */
@Nonnull
private BallColor calculateBallColor() {
  if (owner instanceof TemplateDrivenMultiBranchProject
      && ((TemplateDrivenMultiBranchProject) owner).isDisabled()) {
    return BallColor.DISABLED;
  }
  BallColor c = BallColor.DISABLED;
  boolean animated = false;
  for (Job job : owner.getAllJobs()) {
    BallColor d = job.getIconColor();
    animated |= d.isAnimated();
    d = d.noAnime();
    if (d.compareTo(c) < 0) {
      c = d;
    }
  }
  if (animated) {
    c = c.anime();
  }
  return c;
}
com.cloudbees.hudson.plugins.folderAbstractFoldergetAllJobs

Popular methods of AbstractFolder

  • getProperties
    May be used to enumerate or remove properties. To add properties, use #addProperty.
  • getItem
  • getParent
  • hasPermission
  • save
  • addAction
  • addOrReplaceAction
    Add an action, replacing any existing actions of the (exact) same class. Note: calls to #getAllActio
  • addView
  • checkPermission
  • checkRename
  • childNameGenerator
  • doConfigSubmit
  • childNameGenerator,
  • doConfigSubmit,
  • getACL,
  • getAbsoluteUrl,
  • getActions,
  • getBuildHealthReports,
  • getDescriptor,
  • getDisplayName,
  • getFolderViews

Popular in Java

  • Updating database using SQL prepared statement
  • setContentView (Activity)
  • startActivity (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now