public class AnyOfInstaller extends ToolInstaller
| Modifier and Type | Class and Description |
|---|---|
static class |
AnyOfInstaller.DescriptorImpl
Descriptor for the
AnyOfInstaller. |
ToolInstaller.ToolInstallerEntry, ToolInstaller.ToolInstallerListExtensionPoint.LegacyInstancesAreScopedToHudsontool| Constructor and Description |
|---|
AnyOfInstaller()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
appliesTo(Node node) |
int |
getAttemptsOfWholeList()
The number of times we will attempt each installer before moving onto the
next in the list.
|
int |
getAttemptsPerInstaller()
The number of times we will attempt each installer before moving onto the
next in the list.
|
InstallSourceProperty |
getInstallers()
The list of installers we will attempt.
|
FilePath |
performInstallation(ToolInstallation tool,
Node node,
TaskListener log) |
void |
setAttemptsOfWholeList(int attemptsOfWholeList)
Sets
getAttemptsOfWholeList(). |
void |
setAttemptsPerInstaller(int attemptsPerInstaller)
|
void |
setInstallers(InstallSourceProperty installers)
Sets
getInstallers(). |
protected void |
setTool(ToolInstallation t) |
getDescriptor, getLabel, preferredLocation@DataBoundConstructor public AnyOfInstaller()
@CheckForNull public InstallSourceProperty getInstallers()
@DataBoundSetter public void setInstallers(@Nullable InstallSourceProperty installers)
getInstallers().installers - The new value.public int getAttemptsPerInstaller()
setAttemptsPerInstaller(int) if that
was 1 or more, else 1.@DataBoundSetter public void setAttemptsPerInstaller(int attemptsPerInstaller)
attemptsPerInstaller - The new value.public int getAttemptsOfWholeList()
setAttemptsOfWholeList(int) if that was
1 or more, else 1.@DataBoundSetter public void setAttemptsOfWholeList(int attemptsOfWholeList)
getAttemptsOfWholeList().attemptsOfWholeList - The new value.protected void setTool(ToolInstallation t)
setTool in class ToolInstallerpublic boolean appliesTo(Node node)
appliesTo in class ToolInstallerpublic FilePath performInstallation(ToolInstallation tool, Node node, TaskListener log) throws IOException, InterruptedException
performInstallation in class ToolInstallerIOExceptionInterruptedExceptionCopyright © 2016–2022. All rights reserved.