Package hudson.tools
Class ToolLocationNodeProperty
- java.lang.Object
-
- hudson.slaves.NodeProperty<Node>
-
- hudson.tools.ToolLocationNodeProperty
-
- All Implemented Interfaces:
ExtensionPoint,Describable<NodeProperty<?>>,ReconfigurableDescribable<NodeProperty<?>>
public class ToolLocationNodeProperty extends NodeProperty<Node>
NodePropertythat allows users to specify different locations forToolInstallations.- Since:
- 1.286
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classToolLocationNodeProperty.DescriptorImplstatic classToolLocationNodeProperty.ToolLocation-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.slaves.NodeProperty
node
-
-
Constructor Summary
Constructors Constructor Description ToolLocationNodeProperty(ToolLocationNodeProperty.ToolLocation... locations)ToolLocationNodeProperty(List<ToolLocationNodeProperty.ToolLocation> locations)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetHome(ToolInstallation installation)List<ToolLocationNodeProperty.ToolLocation>getLocations()static StringgetToolHome(Node node, ToolInstallation installation, TaskListener log)Deprecated.since 2009-04-09.-
Methods inherited from class hudson.slaves.NodeProperty
all, buildEnvVars, canTake, canTake, for_, getDescriptor, reconfigure, setNode, setUp
-
-
-
-
Constructor Detail
-
ToolLocationNodeProperty
@DataBoundConstructor public ToolLocationNodeProperty(List<ToolLocationNodeProperty.ToolLocation> locations)
-
ToolLocationNodeProperty
public ToolLocationNodeProperty(ToolLocationNodeProperty.ToolLocation... locations)
-
-
Method Detail
-
getLocations
public List<ToolLocationNodeProperty.ToolLocation> getLocations()
-
getHome
public String getHome(ToolInstallation installation)
-
getToolHome
@Deprecated public static String getToolHome(Node node, ToolInstallation installation, TaskListener log) throws IOException, InterruptedException
Deprecated.since 2009-04-09. UseToolInstallation.translateFor(Node,TaskListener)Checks if the location of the tool is overridden for the given node, and if so, return the node-specific home directory. Otherwise returninstallation.getHome()This is the core logic behind
NodeSpecific.forNode(Node, TaskListener)forToolInstallation.- Returns:
- never null.
- Throws:
IOExceptionInterruptedException
-
-