Class NodeHelper


  • public class NodeHelper
    extends Object
    • Method Detail

      • getNodeName

        public static String getNodeName​(FilePath path)
        Helper: find the node name used for the build
        Parameters:
        path - Jenkins workspace on build node
        Returns:
        Node name
      • workspaceToNode

        public static Node workspaceToNode​(FilePath workspace)
        Helper: find the Node for slave build or return current instance.
        Parameters:
        workspace - Jenkins workspace on build node
        Returns:
        Node