Package hudson.plugins.powershell
Class PowerShell
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
hudson.tasks.CommandInterpreter
hudson.plugins.powershell.PowerShell
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
,EnvVarsFilterableBuilder
Invokes PowerShell from Jenkins.
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.tasks.CommandInterpreter
command, configuredLocalRules
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
ConstructorsConstructorDescriptionPowerShell
(String command, boolean stopOnError, boolean useProfile, Integer unstableReturn) -
Method Summary
Modifier and TypeMethodDescriptionString[]
buildCommandLine
(FilePath script) protected String
protected String
final Integer
protected boolean
isErrorlevelForUnstableBuild
(int exitCode) boolean
boolean
boolean
perform
(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) void
setUnstableReturn
(Integer unstableReturn) Methods inherited from class hudson.tasks.CommandInterpreter
buildEnvVarsFilterRules, createScriptFile, getCommand, getConfiguredLocalRules, join, perform
Methods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService, prebuild
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, prebuild
-
Constructor Details
-
PowerShell
-
-
Method Details
-
perform
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException- Specified by:
perform
in interfaceBuildStep
- Overrides:
perform
in classCommandInterpreter
- Throws:
InterruptedException
-
isStopOnError
public boolean isStopOnError() -
isUseProfile
public boolean isUseProfile() -
getFileExtension
- Specified by:
getFileExtension
in classCommandInterpreter
-
getUnstableReturn
-
setUnstableReturn
-
isErrorlevelForUnstableBuild
protected boolean isErrorlevelForUnstableBuild(int exitCode) - Overrides:
isErrorlevelForUnstableBuild
in classCommandInterpreter
-
buildCommandLine
- Specified by:
buildCommandLine
in classCommandInterpreter
-
getContents
- Specified by:
getContents
in classCommandInterpreter
-