Package hudson.tools
Class ToolLocationTranslator
java.lang.Object
hudson.tools.ToolLocationTranslator
- All Implemented Interfaces:
- ExtensionPoint
- Direct Known Subclasses:
- InstallerTranslator
This Jenkins-wide extension points can participate in determining the actual node-specific path
 of the 
ToolInstallation for the given Node.
 
 This extension point is useful when there's a deterministic rule of where tools are installed.
 One can program such a logic and contribute a ToolLocationTranslator.
 Compared to manually specifying ToolLocationNodeProperty, duplicated configurations
 can be avoided this way.
 
Entry point to the translation process is
- Since:
- 1.299
- Author:
- Kohsuke Kawaguchi
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudson
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic ExtensionList<ToolLocationTranslator> all()Returns all the registeredToolLocationTranslators.abstract StringgetToolHome(Node node, ToolInstallation installation, TaskListener log) Called for eachToolInstallation.translateFor(Node, TaskListener)invocations (which normally means it's invoked for eachNodeSpecific.forNode(Node, TaskListener)) to translate the tool location into the node specific location.
- 
Constructor Details- 
ToolLocationTranslatorpublic ToolLocationTranslator()
 
- 
- 
Method Details- 
getToolHomepublic abstract String getToolHome(Node node, ToolInstallation installation, TaskListener log) throws IOException, InterruptedException Called for eachToolInstallation.translateFor(Node, TaskListener)invocations (which normally means it's invoked for eachNodeSpecific.forNode(Node, TaskListener)) to translate the tool location into the node specific location.If this implementation is capable of determining the location, return the path in the absolute file name. (This method doesn't return Fileso that it can handle path names of a different OS.Otherwise return null to let other ToolLocationTranslators a chance to do translations on their own.- Throws:
- IOException
- InterruptedException
 
- 
allReturns all the registeredToolLocationTranslators.
 
-