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 ClassesNested classes/interfaces inherited from class hudson.tools.ToolInstaller
ToolInstaller.ToolInstallerEntry, ToolInstaller.ToolInstallerListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.tools.ToolInstaller
tool -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintThe number of times we will attempt each installer before moving onto the next in the list.intThe 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) voidsetAttemptsOfWholeList(int attemptsOfWholeList) SetsgetAttemptsOfWholeList().voidsetAttemptsPerInstaller(int attemptsPerInstaller) voidsetInstallers(InstallSourceProperty installers) SetsgetInstallers().protected voidMethods 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:
setToolin classToolInstaller
-
appliesTo
- Overrides:
appliesToin classToolInstaller
-
performInstallation
public FilePath performInstallation(ToolInstallation tool, Node node, TaskListener log) throws IOException, InterruptedException - Specified by:
performInstallationin classToolInstaller- Throws:
IOExceptionInterruptedException
-