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 BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class CommandInterpreter
command, configuredLocalRulesFields inherited from interface 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 CommandInterpreter
buildEnvVarsFilterRules, createScriptFile, getCommand, getConfiguredLocalRules, join, performMethods inherited from class Builder
all, getDescriptor, getRequiredMonitorService, prebuildMethods inherited from class 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
-