Package hudson.tasks
Class BatchFile
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
hudson.tasks.CommandInterpreter
hudson.tasks.BatchFile
- All Implemented Interfaces:
ExtensionPoint,Describable<Builder>,BuildStep,EnvVarsFilterableBuilder
Executes commands by using Windows batch file.
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]buildCommandLine(FilePath script) protected Stringprotected Stringfinal Integerprotected booleanisErrorlevelForUnstableBuild(int exitCode) Determines whether a non-zero exit code from the process should change the build status toResult.UNSTABLEinstead of defaultResult.FAILURE.voidsetConfiguredLocalRules(List<EnvVarsFilterLocalRule> configuredLocalRules) Set local environment variable filter rulesvoidsetUnstableReturn(Integer unstableReturn) Methods inherited from class hudson.tasks.CommandInterpreter
buildEnvVarsFilterRules, createScriptFile, getCommand, getConfiguredLocalRules, join, perform, performMethods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, prebuild
-
Constructor Details
-
BatchFile
-
-
Method Details
-
setConfiguredLocalRules
@Restricted(org.kohsuke.accmod.restrictions.Beta.class) @DataBoundSetter public void setConfiguredLocalRules(List<EnvVarsFilterLocalRule> configuredLocalRules) Set local environment variable filter rules- Parameters:
configuredLocalRules- list of local environment filter rules- Since:
- 2.246
-
buildCommandLine
- Specified by:
buildCommandLinein classCommandInterpreter
-
getContents
- Specified by:
getContentsin classCommandInterpreter
-
getFileExtension
- Specified by:
getFileExtensionin classCommandInterpreter
-
getUnstableReturn
-
setUnstableReturn
-
isErrorlevelForUnstableBuild
protected boolean isErrorlevelForUnstableBuild(int exitCode) Description copied from class:CommandInterpreterDetermines whether a non-zero exit code from the process should change the build status toResult.UNSTABLEinstead of defaultResult.FAILURE. Changing toResult.UNSTABLEdoes not abort the build, next steps are continued.- Overrides:
isErrorlevelForUnstableBuildin classCommandInterpreter
-