Class NodeCondition

    • Constructor Detail

      • NodeCondition

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

      • 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