public class Shell extends CommandInterpreter
Modifier and Type | Class and Description |
---|---|
static class |
Shell.DescriptorImpl |
ExtensionPoint.LegacyInstancesAreScopedToHudson
BuildStep.PublisherList
command, configuredLocalRules
BUILDERS, PUBLISHERS
Modifier and Type | Method and Description |
---|---|
String[] |
buildCommandLine(FilePath script) |
protected String |
getContents() |
Shell.DescriptorImpl |
getDescriptor()
Gets the descriptor for this instance.
|
protected String |
getFileExtension() |
Integer |
getUnstableReturn() |
protected boolean |
isErrorlevelForUnstableBuild(int exitCode)
Determines whether a non-zero exit code from the process should change the build
status to
Result.UNSTABLE instead of default Result.FAILURE . |
void |
setConfiguredLocalRules(List<EnvVarsFilterLocalRule> configuredLocalRules)
Set local environment variable filter rules
|
void |
setUnstableReturn(Integer unstableReturn) |
buildEnvVarsFilterRules, createScriptFile, getCommand, getConfiguredLocalRules, join, perform, perform
all, getRequiredMonitorService, prebuild
getProjectAction, getProjectAction, getProjectActions, perform, prebuild
@DataBoundConstructor public Shell(String command)
@Restricted(value=org.kohsuke.accmod.restrictions.Beta.class) @DataBoundSetter public void setConfiguredLocalRules(List<EnvVarsFilterLocalRule> configuredLocalRules)
configuredLocalRules
- list of local environment filter rulespublic String[] buildCommandLine(FilePath script)
buildCommandLine
in class CommandInterpreter
protected String getContents()
getContents
in class CommandInterpreter
protected String getFileExtension()
getFileExtension
in class CommandInterpreter
@CheckForNull public final Integer getUnstableReturn()
@DataBoundSetter public void setUnstableReturn(Integer unstableReturn)
protected boolean isErrorlevelForUnstableBuild(int exitCode)
CommandInterpreter
Result.UNSTABLE
instead of default Result.FAILURE
.
Changing to Result.UNSTABLE
does not abort the build, next steps are continued.isErrorlevelForUnstableBuild
in class CommandInterpreter
public Shell.DescriptorImpl getDescriptor()
Describable
Descriptor
is a singleton for every concrete Describable
implementation, so if a.getClass() == b.getClass()
then by default
a.getDescriptor() == b.getDescriptor()
as well.
(In rare cases a single implementation class may be used for instances with distinct descriptors.)
getDescriptor
in interface Describable<Builder>
getDescriptor
in class Builder
Copyright © 2004–2022. All rights reserved.