public class CustomTool extends ToolInstallation implements NodeSpecific<CustomTool>, EnvironmentSpecific<CustomTool>
| Modifier and Type | Class and Description |
|---|---|
static class |
CustomTool.DescriptorImpl |
ToolInstallation.ToolConverterExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
CustomTool(String name,
String home,
List<? extends ToolProperty<?>> 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<JobPropertyDescriptor,JobProperty> properties)
Deprecated.
|
CustomTool |
forEnvironment(EnvVars environment) |
CustomTool |
forNode(Node node,
TaskListener log) |
String |
getAdditionalVariables() |
List<LabelSpecifics> |
getAppliedSpecifics(Node node)
Get list of label specifics, which apply to the specified node.
|
String |
getExportedPaths() |
String |
getHome() |
LabelSpecifics[] |
getLabelSpecifics() |
protected PathsList |
getPaths(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() |
all, buildEnvVars, getName, getProperties, readResolve, toString, translate, translate, translateForgetDescriptor@DataBoundConstructor public CustomTool(@Nonnull String name, @CheckForNull String home, @CheckForNull List<? extends ToolProperty<?>> properties, @CheckForNull String exportedPaths, @CheckForNull LabelSpecifics[] labelSpecifics, @CheckForNull ToolVersionConfig toolVersion, @CheckForNull String additionalVariables)
@CheckForNull public String getExportedPaths()
@CheckForNull public ToolVersionConfig getToolVersion()
public boolean hasVersions()
@CheckForNull public String getHome()
getHome in class ToolInstallation@Nonnull public LabelSpecifics[] getLabelSpecifics()
public boolean hasAdditionalVariables()
@CheckForNull public String getAdditionalVariables()
public CustomTool forEnvironment(EnvVars environment)
forEnvironment in interface EnvironmentSpecific<CustomTool>@Nonnull public CustomTool forNode(Node node, TaskListener log) throws IOException, InterruptedException
forNode in interface NodeSpecific<CustomTool>IOExceptionInterruptedException@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public CustomTool forBuildProperties(Map<JobPropertyDescriptor,JobProperty> properties)
public void check()
throws CustomToolException
CustomToolException - Validation error@Nonnull public List<LabelSpecifics> getAppliedSpecifics(@Nonnull Node node)
node - Node to be checked@Nonnull protected PathsList getPaths(@Nonnull Node node) throws IOException, InterruptedException
node - where the tool has been installedIOException - Operation errorInterruptedException - Operation has been interruptedCopyright © 2016–2021. All rights reserved.