public class IsAlreadyOnPath extends ToolInstaller
ToolInstaller that locates an existing tool on the agent, or fails.| Modifier and Type | Class and Description |
|---|---|
static class |
IsAlreadyOnPath.DescriptorImpl
Descriptor for
IsAlreadyOnPath. |
ToolInstaller.ToolInstallerEntry, ToolInstaller.ToolInstallerListExtensionPoint.LegacyInstancesAreScopedToHudsontool| Constructor and Description |
|---|
IsAlreadyOnPath(String label)
Constructor that sets mandatory fields.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getExecutableName()
Name of the executable we are to locate.
|
String |
getRelativePath()
Directory of the tool's "home", relative to wherever we found the command on
the path.
|
String[] |
getVersionCmd()
Command we run in order to test what version we've got.
|
String |
getVersionCmdString()
See
getVersionCmd(). |
String |
getVersionMax()
The maximum version acceptable.
|
String |
getVersionMin()
The minimum version acceptable.
|
Pattern |
getVersionPattern()
The regular expression used to parse the output from running
getVersionCmd(). |
String |
getVersionPatternString()
The regular expression used to parse the output from running
getVersionCmd(). |
FilePath |
performInstallation(ToolInstallation tool,
Node node,
TaskListener log) |
void |
setExecutableName(String executable)
Sets
getExecutableName(). |
void |
setRelativePath(String relativePath)
Sets
getRelativePath(). |
void |
setVersionCmd(String[] versionCmd)
Sets
getVersionCmd(). |
void |
setVersionCmdString(String versionCmdString)
|
void |
setVersionMax(String versionMax)
Sets
getVersionMax(). |
void |
setVersionMin(String versionMin)
Sets
getVersionMin(). |
void |
setVersionPattern(Pattern versionPattern)
Sets
getVersionPatternString() and getVersionPattern(). |
void |
setVersionPatternString(String versionPatternString)
Sets
getVersionPatternString() and getVersionPattern(). |
appliesTo, getDescriptor, getLabel, preferredLocation, setTool@DataBoundConstructor public IsAlreadyOnPath(String label)
label - The ToolInstaller.getLabel().@CheckForNull public String getExecutableName()
@DataBoundSetter public void setExecutableName(@Nullable String executable)
getExecutableName().executable - New value.@CheckForNull public String getRelativePath()
@DataBoundSetter public void setRelativePath(@Nullable String relativePath)
getRelativePath().relativePath - New value.@CheckForNull public String[] getVersionCmd()
@Nonnull public String getVersionCmdString()
getVersionCmd().getVersionCmd() as a multi-line string.public void setVersionCmd(String[] versionCmd)
getVersionCmd().versionCmd - New value.@DataBoundSetter public void setVersionCmdString(String versionCmdString)
versionCmdString - New value as multi-line string.public Pattern getVersionPattern()
getVersionCmd().public void setVersionPattern(Pattern versionPattern)
getVersionPatternString() and getVersionPattern().versionPattern - New value.@CheckForNull public String getVersionPatternString()
getVersionCmd().@DataBoundSetter public void setVersionPatternString(String versionPatternString)
getVersionPatternString() and getVersionPattern().versionPatternString - New value.@CheckForNull public String getVersionMin()
@DataBoundSetter public void setVersionMin(String versionMin)
getVersionMin().versionMin - New value.@CheckForNull public String getVersionMax()
@DataBoundSetter public void setVersionMax(String versionMax)
getVersionMax().versionMax - New value.public FilePath performInstallation(@Nonnull ToolInstallation tool, @Nonnull Node node, @CheckForNull TaskListener log) throws IOException, InterruptedException
performInstallation in class ToolInstallerIOExceptionInterruptedExceptionCopyright © 2016–2022. All rights reserved.