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,
String additionalVariables) |
| Modifier and Type | Method and Description |
|---|---|
void |
check()
Checks the tool consistency.
|
void |
correctHome(PathsList pathList) |
CustomTool |
forBuildProperties(Map<hudson.model.JobPropertyDescriptor,hudson.model.JobProperty> properties)
Deprecated.
|
CustomTool |
forEnvironment(hudson.EnvVars environment) |
CustomTool |
forNode(hudson.model.Node node,
hudson.model.TaskListener log) |
String |
getAdditionalVariables() |
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()
Gets the tool version configuration.
|
boolean |
hasAdditionalVariables()
Check if the tool has additional environment variables set.
|
boolean |
hasVersions() |
@DataBoundConstructor
public CustomTool(@Nonnull
String name,
@Nonnull
String home,
@CheckForNull
List properties,
@CheckForNull
String exportedPaths,
@CheckForNull
LabelSpecifics[] labelSpecifics,
@CheckForNull
ToolVersionConfig toolVersion,
@CheckForNull
String additionalVariables)
@CheckForNull public String getExportedPaths()
@CheckForNull public ToolVersionConfig getToolVersion()
public boolean hasVersions()
@Nonnull public String getHome()
getHome in class hudson.tools.ToolInstallationpublic void correctHome(@Nonnull
PathsList pathList)
@Nonnull public LabelSpecifics[] getLabelSpecifics()
public boolean hasAdditionalVariables()
@CheckForNull public String getAdditionalVariables()
public CustomTool forEnvironment(hudson.EnvVars environment)
forEnvironment in interface hudson.model.EnvironmentSpecific<CustomTool>@Nonnull public CustomTool forNode(hudson.model.Node node, hudson.model.TaskListener log) throws IOException, InterruptedException
forNode in interface hudson.slaves.NodeSpecific<CustomTool>IOExceptionInterruptedException@Deprecated public CustomTool forBuildProperties(Map<hudson.model.JobPropertyDescriptor,hudson.model.JobProperty> properties)
public void check()
throws CustomToolException
CustomToolException - Validation error@Nonnull public List<LabelSpecifics> getAppliedSpecifics(@Nonnull hudson.model.Node node)
node - Node to be checked@Nonnull protected PathsList getPaths(@Nonnull hudson.model.Node node) throws IOException, InterruptedException
node - where the tool has been installedIOExceptionInterruptedException - Operation has been interruptedCopyright © 2004-2014. All Rights Reserved.