Class NodeCondition

All Implemented Interfaces:
ExtensionPoint, Describable<RunCondition>

public final class NodeCondition extends AlwaysPrebuildRunCondition
  • Constructor Details

    • NodeCondition

      @DataBoundConstructor public NodeCondition(List<String> allowedNodes)
  • Method Details

    • getAllowedNodes

      public List<String> getAllowedNodes()
    • runPerform

      public boolean runPerform(AbstractBuild<?,?> build, BuildListener listener)
      Description copied from class: RunCondition
      Decide whether to run the perform method in the BuildStep.
      Specified by:
      runPerform in class RunCondition
      Returns:
      true if the perform method of the BuildStep should run
    • getNodeNamesForSelection

      public static List<String> getNodeNamesForSelection()
      returns all available nodes plus an identifier to identify all slaves at position one.
      Returns:
      list of node names