Package hudson.tools
Class ToolLocationNodeProperty
- All Implemented Interfaces:
ExtensionPoint
,Describable<NodeProperty<?>>
,ReconfigurableDescribable<NodeProperty<?>>
NodeProperty
that allows users to specify different locations for ToolInstallation
s.- Since:
- 1.286
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static final class
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.slaves.NodeProperty
node
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptiongetHome
(ToolInstallation installation) 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, reconfigure, setNode, setUp
-
Constructor Details
-
ToolLocationNodeProperty
@DataBoundConstructor public ToolLocationNodeProperty(List<ToolLocationNodeProperty.ToolLocation> locations) -
ToolLocationNodeProperty
-
-
Method Details
-
getLocations
-
getHome
-
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
-