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 for ToolInstallation
s.
- Since:
- 1.286
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ToolLocationNodeProperty
@DataBoundConstructor
public ToolLocationNodeProperty(List<ToolLocationNodeProperty.ToolLocation> locations)
ToolLocationNodeProperty
public ToolLocationNodeProperty(ToolLocationNodeProperty.ToolLocation... locations)
getLocations
public List<ToolLocationNodeProperty.ToolLocation> getLocations()
getHome
public String getHome(ToolInstallation installation)
getToolHome
public static String getToolHome(Node node,
ToolInstallation installation,
TaskListener log)
throws IOException,
InterruptedException
- Deprecated. since 2009-04-09.
Use
ToolInstallation.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 return
installation.getHome()
This is the core logic behind NodeSpecific#forNode(Node)
for ToolInstallation
.
- Returns:
- never null.
- Throws:
IOException
InterruptedException
Copyright © 2004-2013. All Rights Reserved.