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.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.tasks.CommandInterpreter
command, configuredLocalRulesFields 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 Stringprotected Stringfinal Integerprotected booleanisErrorlevelForUnstableBuild(int exitCode) booleanbooleanbooleanperform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) voidsetUnstableReturn(Integer unstableReturn) Methods inherited from class hudson.tasks.CommandInterpreter
buildEnvVarsFilterRules, createScriptFile, getCommand, getConfiguredLocalRules, join, performMethods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService, prebuildMethods 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:
performin interfaceBuildStep- Overrides:
performin classCommandInterpreter- Throws:
InterruptedException
-
isStopOnError
public boolean isStopOnError() -
isUseProfile
public boolean isUseProfile() -
getFileExtension
- Specified by:
getFileExtensionin classCommandInterpreter
-
getUnstableReturn
-
setUnstableReturn
-
isErrorlevelForUnstableBuild
protected boolean isErrorlevelForUnstableBuild(int exitCode) - Overrides:
isErrorlevelForUnstableBuildin classCommandInterpreter
-
buildCommandLine
- Specified by:
buildCommandLinein classCommandInterpreter
-
getContents
- Specified by:
getContentsin classCommandInterpreter
-