public class PowerShell
extends hudson.tasks.CommandInterpreter
| Modifier and Type | Class and Description |
|---|---|
static class |
PowerShell.DescriptorImpl |
| Constructor and Description |
|---|
PowerShell(String command,
boolean stopOnError,
boolean useProfile,
Integer unstableReturn) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
buildCommandLine(hudson.FilePath script) |
protected String |
getContents() |
protected String |
getFileExtension() |
Integer |
getUnstableReturn() |
protected boolean |
isErrorlevelForUnstableBuild(int exitCode) |
boolean |
isStopOnError() |
boolean |
isUseProfile() |
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
void |
setUnstableReturn(Integer unstableReturn) |
createScriptFile, getCommand, join, performall, getDescriptor, getRequiredMonitorService, prebuildpublic boolean perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws InterruptedException
perform in interface hudson.tasks.BuildStepperform in class hudson.tasks.CommandInterpreterInterruptedExceptionpublic boolean isStopOnError()
public boolean isUseProfile()
protected String getFileExtension()
getFileExtension in class hudson.tasks.CommandInterpreter@CheckForNull public final Integer getUnstableReturn()
@DataBoundSetter public void setUnstableReturn(Integer unstableReturn)
protected boolean isErrorlevelForUnstableBuild(int exitCode)
isErrorlevelForUnstableBuild in class hudson.tasks.CommandInterpreterpublic String[] buildCommandLine(hudson.FilePath script)
buildCommandLine in class hudson.tasks.CommandInterpreterprotected String getContents()
getContents in class hudson.tasks.CommandInterpreterCopyright © 2016–2022. All rights reserved.