public class NodeHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
MASTER_NODE_NAME |
static String |
UNKNOWN_NODE_NAME |
Modifier and Type | Method and Description |
---|---|
static String |
getNodeName(hudson.FilePath path) |
static String |
getNodeName(hudson.model.Run<?,?> run) |
static String |
nameOf(hudson.model.Node node) |
static hudson.model.Computer |
workspaceToComputer(hudson.FilePath workspace)
Helper: find the Remote/Local Computer used for build
|
static hudson.model.Node |
workspaceToNode(hudson.FilePath workspace)
Helper: find the Node for slave build or return current instance.
|
public static final String UNKNOWN_NODE_NAME
public static final String MASTER_NODE_NAME
public static String getNodeName(hudson.model.Run<?,?> run)
public static String getNodeName(hudson.FilePath path)
public static String nameOf(hudson.model.Node node)
public static hudson.model.Computer workspaceToComputer(hudson.FilePath workspace)
workspace
- public static hudson.model.Node workspaceToNode(hudson.FilePath workspace)
workspace
- Copyright © 2016–2017. All rights reserved.