Package hudson.plugins.powershell
Class PowerShellInstallation
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<ToolInstallation>
-
- hudson.tools.ToolInstallation
-
- hudson.plugins.powershell.PowerShellInstallation
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<ToolInstallation>
,EnvironmentSpecific<PowerShellInstallation>
,NodeSpecific<PowerShellInstallation>
,Serializable
public class PowerShellInstallation extends ToolInstallation implements NodeSpecific<PowerShellInstallation>, EnvironmentSpecific<PowerShellInstallation>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PowerShellInstallation.DescriptorImpl
-
Nested classes/interfaces inherited from class hudson.tools.ToolInstallation
ToolInstallation.ToolConverter
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULTLINUX
static String
DEFAULTWINDOWS
-
Constructor Summary
Constructors Constructor Description PowerShellInstallation(String name, String home, List<? extends ToolProperty<?>> properties)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PowerShellInstallation
forEnvironment(EnvVars environment)
PowerShellInstallation
forNode(Node node, TaskListener log)
static String
getDefaultPowershellWhenNoConfiguration(Boolean isRunningOnWindows)
String
getPowerShellBinary()
static void
onLoaded()
-
Methods inherited from class hudson.tools.ToolInstallation
all, buildEnvVars, getHome, getName, getProperties, readResolve, toString, translate, translate, translateFor, writeReplace
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Field Detail
-
DEFAULTWINDOWS
public static final transient String DEFAULTWINDOWS
- See Also:
- Constant Field Values
-
DEFAULTLINUX
public static final transient String DEFAULTLINUX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PowerShellInstallation
@DataBoundConstructor public PowerShellInstallation(String name, String home, List<? extends ToolProperty<?>> properties)
-
-
Method Detail
-
forNode
public PowerShellInstallation forNode(@NonNull Node node, TaskListener log) throws IOException, InterruptedException
- Specified by:
forNode
in interfaceNodeSpecific<PowerShellInstallation>
- Throws:
IOException
InterruptedException
-
forEnvironment
public PowerShellInstallation forEnvironment(EnvVars environment)
- Specified by:
forEnvironment
in interfaceEnvironmentSpecific<PowerShellInstallation>
-
getDefaultPowershellWhenNoConfiguration
public static String getDefaultPowershellWhenNoConfiguration(Boolean isRunningOnWindows)
-
onLoaded
@Initializer(after=EXTENSIONS_AUGMENTED) public static void onLoaded()
-
getPowerShellBinary
public String getPowerShellBinary()
-
-