public class CustomTool extends hudson.tools.ToolInstallation implements hudson.slaves.NodeSpecific<CustomTool>, hudson.model.EnvironmentSpecific<CustomTool>
| Modifier and Type | Class and Description |
|---|---|
static class |
CustomTool.DescriptorImpl |
| Constructor and Description |
|---|
CustomTool(String name,
String home,
List properties,
String exportedPaths,
LabelSpecifics[] labelSpecifics,
ToolVersionConfig toolVersion) |
| Modifier and Type | Method and Description |
|---|---|
void |
check()
Checks consistency of the tool.
|
void |
correctHome(PathsList pathList) |
CustomTool |
forBuildProperties(Map<hudson.model.JobPropertyDescriptor,hudson.model.JobProperty> properties) |
CustomTool |
forEnvironment(hudson.EnvVars environment) |
CustomTool |
forNode(hudson.model.Node node,
hudson.model.TaskListener log) |
List<LabelSpecifics> |
getAppliedSpecifics(hudson.model.Node node)
Get list of label specifics, which apply to the specified node.
|
String |
getExportedPaths() |
String |
getHome() |
LabelSpecifics[] |
getLabelSpecifics() |
protected PathsList |
getPaths(hudson.model.Node node)
Finds the directories to add to the path, for the given node.
|
ToolVersionConfig |
getToolVersion() |
boolean |
hasVersions() |
@DataBoundConstructor public CustomTool(String name, String home, List properties, String exportedPaths, LabelSpecifics[] labelSpecifics, ToolVersionConfig toolVersion)
public String getExportedPaths()
public ToolVersionConfig getToolVersion()
public boolean hasVersions()
public String getHome()
getHome in class hudson.tools.ToolInstallationpublic void correctHome(PathsList pathList)
public LabelSpecifics[] getLabelSpecifics()
public CustomTool forEnvironment(hudson.EnvVars environment)
forEnvironment in interface hudson.model.EnvironmentSpecific<CustomTool>public CustomTool forNode(hudson.model.Node node, hudson.model.TaskListener log) throws IOException, InterruptedException
forNode in interface hudson.slaves.NodeSpecific<CustomTool>IOExceptionInterruptedExceptionpublic CustomTool forBuildProperties(Map<hudson.model.JobPropertyDescriptor,hudson.model.JobProperty> properties)
public void check()
throws CustomToolException
CustomToolException - Validation errorpublic List<LabelSpecifics> getAppliedSpecifics(hudson.model.Node node)
node - Node to be checkedprotected PathsList getPaths(hudson.model.Node node) throws IOException, InterruptedException
node - where the tool has been installedIOExceptionInterruptedExceptionCopyright © 2004-2013. All Rights Reserved.