Class AnyOfInstaller
java.lang.Object
hudson.tools.ToolInstaller
io.jenkins.plugins.extratoolinstallers.installers.AnyOfInstaller
- All Implemented Interfaces:
ExtensionPoint
,Describable<ToolInstaller>
Installs tools using "any of" the installation methods provided. The
installation is deemed a success upon any success, ignoring any earlier
failures.
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.tools.ToolInstaller
ToolInstaller.ToolInstallerEntry, ToolInstaller.ToolInstallerList
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.tools.ToolInstaller
tool
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
The number of times we will attempt each installer before moving onto the next in the list.int
The number of times we will attempt each installer before moving onto the next in the list.The list of installers we will attempt.performInstallation
(ToolInstallation tool, Node node, TaskListener log) void
setAttemptsOfWholeList
(int attemptsOfWholeList) SetsgetAttemptsOfWholeList()
.void
setAttemptsPerInstaller
(int attemptsPerInstaller) void
setInstallers
(InstallSourceProperty installers) SetsgetInstallers()
.protected void
Methods inherited from class hudson.tools.ToolInstaller
getDescriptor, getLabel, preferredLocation
-
Constructor Details
-
AnyOfInstaller
@DataBoundConstructor public AnyOfInstaller()Default constructor.
-
-
Method Details
-
getInstallers
The list of installers we will attempt. Cannot be empty for this installer to be valid.- Returns:
- Our installers.
-
setInstallers
SetsgetInstallers()
.- Parameters:
installers
- The new value.
-
getAttemptsPerInstaller
public int getAttemptsPerInstaller()The number of times we will attempt each installer before moving onto the next in the list. Will always be one or more.- Returns:
- The value set by
setAttemptsPerInstaller(int)
if that was 1 or more, else 1.
-
setAttemptsPerInstaller
@DataBoundSetter public void setAttemptsPerInstaller(int attemptsPerInstaller) - Parameters:
attemptsPerInstaller
- The new value.
-
getAttemptsOfWholeList
public int getAttemptsOfWholeList()The number of times we will attempt each installer before moving onto the next in the list. Will always return one or more.- Returns:
- The value set by
setAttemptsOfWholeList(int)
if that was 1 or more, else 1.
-
setAttemptsOfWholeList
@DataBoundSetter public void setAttemptsOfWholeList(int attemptsOfWholeList) SetsgetAttemptsOfWholeList()
.- Parameters:
attemptsOfWholeList
- The new value.
-
setTool
- Overrides:
setTool
in classToolInstaller
-
appliesTo
- Overrides:
appliesTo
in classToolInstaller
-
performInstallation
public FilePath performInstallation(ToolInstallation tool, Node node, TaskListener log) throws IOException, InterruptedException - Specified by:
performInstallation
in classToolInstaller
- Throws:
IOException
InterruptedException
-