Package hudson.tools
Class ToolLocationNodeProperty
- All Implemented Interfaces:
ExtensionPoint,Describable<NodeProperty<?>>,ReconfigurableDescribable<NodeProperty<?>>
NodeProperty that allows users to specify different locations for ToolInstallations.- Since:
- 1.286
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final classNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.slaves.NodeProperty
node -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptiongetHome(ToolInstallation installation) 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, 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:
IOExceptionInterruptedException
-