Class AbstractExtraToolInstaller
java.lang.Object
hudson.tools.ToolInstaller
com.synopsys.arc.jenkinsci.plugins.extratoolinstallers.installers.AbstractExtraToolInstaller
- All Implemented Interfaces:
ExtensionPoint
,Describable<ToolInstaller>
- Direct Known Subclasses:
BatchCommandInstaller
,SharedDirectoryInstaller
,StubInstaller
Abstract class, which encapsulates common methods for installers.
- Since:
- 0.2.1
- Author:
- Oleg Nenashev
-
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
ConstructorDescriptionAbstractExtraToolInstaller
(String label, String toolHome, boolean failOnSubstitution) Constructor that sets all fields. -
Method Summary
Methods inherited from class hudson.tools.ToolInstaller
appliesTo, getDescriptor, getLabel, performInstallation, preferredLocation, setTool
-
Constructor Details
-
AbstractExtraToolInstaller
Constructor that sets all fields.- Parameters:
label
- TheToolInstaller.getLabel()
.toolHome
- OurgetToolHome()
.failOnSubstitution
- OurisFailOnSubstitution()
.
-
-
Method Details
-
isFailOnSubstitution
public final boolean isFailOnSubstitution() -
getToolHome
-
substituteNodeVariablesValidated
protected String substituteNodeVariablesValidated(String stringName, String macroString, Node node) throws ExtraToolInstallersException Substitute variables and fail on errors.- Parameters:
stringName
- Name of the fieldmacroString
- String to be checkednode
- Node, where tool is being installed- Returns:
- Substituted string
- Throws:
ExtraToolInstallersException
- Substitution error
-