org.jenkinsci.plugins.managedscripts
Class WinBatchBuildStep
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
hudson.tasks.CommandInterpreter
org.jenkinsci.plugins.managedscripts.WinBatchBuildStep
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Builder>, hudson.tasks.BuildStep
public class WinBatchBuildStep
- extends hudson.tasks.CommandInterpreter
A project that uses this builder can choose a build step from a list of predefined windows batch files that are used as command line scripts.
- Author:
- Dominik Bartholdi (imod)
- See Also:
BatchFile
| Nested classes/interfaces inherited from interface hudson.tasks.BuildStep |
hudson.tasks.BuildStep.PublisherList |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Fields inherited from class hudson.tasks.CommandInterpreter |
command |
| Fields inherited from interface hudson.tasks.BuildStep |
BUILDERS, PUBLISHERS |
| Methods inherited from class hudson.tasks.CommandInterpreter |
createScriptFile, getCommand, perform, perform |
| Methods inherited from class hudson.tasks.Builder |
all, getRequiredMonitorService, prebuild |
| Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer |
getProjectAction, getProjectAction, getProjectActions, perform, prebuild |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface hudson.tasks.BuildStep |
getProjectAction, getProjectActions, prebuild |
WinBatchBuildStep
@DataBoundConstructor
public WinBatchBuildStep(String buildStepId,
WinBatchBuildStep.ScriptBuildStepArgs scriptBuildStepArgs)
- The constructor used at form submission
- Parameters:
buildStepId - the Id of the config filescriptBuildStepArgs - whether to save the args and arg values (the boolean is required because of html form submission, which also sends hidden values)
WinBatchBuildStep
public WinBatchBuildStep(String buildStepId,
String[] buildStepArgs)
- The constructor
- Parameters:
buildStepId - the Id of the config filebuildStepArgs - list of arguments specified as buildStepargs
getBuildStepId
public String getBuildStepId()
getBuildStepArgs
public String[] getBuildStepArgs()
buildCommandLine
public String[] buildCommandLine(hudson.FilePath script)
- Specified by:
buildCommandLine in class hudson.tasks.CommandInterpreter
getContents
protected String getContents()
- Specified by:
getContents in class hudson.tasks.CommandInterpreter
getFileExtension
protected String getFileExtension()
- Specified by:
getFileExtension in class hudson.tasks.CommandInterpreter
getDescriptor
public WinBatchBuildStep.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>- Overrides:
getDescriptor in class hudson.tasks.Builder
Copyright © 2004-2013. All Rights Reserved.