public class CustomToolInstallWrapper extends BuildWrapper
Modifier and Type | Class and Description |
---|---|
static class |
CustomToolInstallWrapper.DescriptorImpl |
static class |
CustomToolInstallWrapper.SelectedTool
Ceremony needed to satisfy NoStaplerConstructionException:
"There's no @DataBoundConstructor on any constructor of class java.lang.String"
|
BuildWrapper.Environment
ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Field and Description |
---|---|
static CustomToolInstallWrapper.DescriptorImpl |
DESCRIPTOR |
Constructor and Description |
---|
CustomToolInstallWrapper(CustomToolInstallWrapper.SelectedTool[] selectedTools,
MulticonfigWrapperOptions multiconfigOptions,
boolean convertHomesToUppercase) |
Modifier and Type | Method and Description |
---|---|
void |
checkVersions(CustomTool tool,
BuildListener listener,
EnvVars buildEnv,
Node node,
EnvVars target)
Checks versions and modify build environment if required.
|
void |
CheckVersions(CustomTool tool,
BuildListener listener,
EnvVars buildEnv,
Node node,
EnvVars target)
Deprecated.
The method is deprecated. It will be removed in future versions.
|
Launcher |
decorateLauncher(AbstractBuild build,
Launcher launcher,
BuildListener listener)
The heart of the beast.
|
Descriptor<BuildWrapper> |
getDescriptor() |
MulticonfigWrapperOptions |
getMulticonfigOptions()
Gets multi-configuration job parameters.
|
CustomToolInstallWrapper.SelectedTool[] |
getSelectedTools() |
boolean |
hasMulticonfigOptions()
Check if build has specific multi-configuration options
|
boolean |
isConvertHomesToUppercase() |
BuildWrapper.Environment |
setUp(AbstractBuild build,
Launcher launcher,
BuildListener listener) |
all, decorateLogger, getProjectAction, getProjectActions, makeBuildVariables, makeSensitiveBuildVariables, preCheckout, setUp
@Extension public static final CustomToolInstallWrapper.DescriptorImpl DESCRIPTOR
@DataBoundConstructor public CustomToolInstallWrapper(CustomToolInstallWrapper.SelectedTool[] selectedTools, MulticonfigWrapperOptions multiconfigOptions, boolean convertHomesToUppercase)
public boolean isConvertHomesToUppercase()
public BuildWrapper.Environment setUp(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException
setUp
in class BuildWrapper
IOException
InterruptedException
@Nonnull public CustomToolInstallWrapper.SelectedTool[] getSelectedTools()
public Launcher decorateLauncher(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException, Run.RunnerAbortedException
decorateLauncher
in class BuildWrapper
IOException
InterruptedException
Run.RunnerAbortedException
public void CheckVersions(CustomTool tool, BuildListener listener, EnvVars buildEnv, Node node, EnvVars target) throws CustomToolException
CustomToolException
public void checkVersions(@Nonnull CustomTool tool, @Nonnull BuildListener listener, @Nonnull EnvVars buildEnv, @Nonnull Node node, @Nonnull EnvVars target) throws CustomToolException
tool
- Custom Toollistener
- Build ListenerbuildEnv
- Build Environment (can be modified)node
- Target Nodetarget
- Build Internal Environment (can be modified)CustomToolException
public Descriptor<BuildWrapper> getDescriptor()
getDescriptor
in interface Describable<BuildWrapper>
getDescriptor
in class AbstractDescribableImpl<BuildWrapper>
public boolean hasMulticonfigOptions()
@Nonnull public MulticonfigWrapperOptions getMulticonfigOptions()
Copyright © 2016–2021. All rights reserved.