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>
NodeProperty
that allows users to specify different locations forToolInstallation
s.- Since:
- 1.286
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ToolLocationNodeProperty.DescriptorImpl
static class
ToolLocationNodeProperty.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 String
getHome(ToolInstallation installation)
List<ToolLocationNodeProperty.ToolLocation>
getLocations()
static String
getToolHome(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:
IOException
InterruptedException
-
-