Class ScriptBuildStep
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
org.jenkinsci.plugins.managedscripts.ScriptBuildStep
- All Implemented Interfaces:
ExtensionPoint,Describable<Builder>,BuildStep
LibraryBuildStep
Builder.
A project that uses this builder can choose a build step from a list of predefined config files that are uses as command line scripts. The hash-bang sequence at the beginning of each file is used to determine the interpreter.
- Author:
- Norman Baumann, Dominik Bartholdi (imod)
-
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 interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
ConstructorsConstructorDescriptionScriptBuildStep(String buildStepId, boolean defineArgs, ScriptBuildStep.ArgValue[] buildStepArgs, boolean tokenized) The constructor used at form submissionScriptBuildStep(String buildStepId, String[] buildStepArgs) -
Method Summary
Modifier and TypeMethodDescriptionString[]booleanbooleanperform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) Perform the build step on the execution host.Methods inherited from class hudson.tasks.Builder
all, getRequiredMonitorService, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, prebuild
-
Constructor Details
-
ScriptBuildStep
@DataBoundConstructor public ScriptBuildStep(String buildStepId, boolean defineArgs, ScriptBuildStep.ArgValue[] buildStepArgs, boolean tokenized) The constructor used at form submission- Parameters:
buildStepId- the Id of the config filedefineArgs- required because of html form submission, which also sends hidden valuesbuildStepArgs- arg valuestokenized-
-
ScriptBuildStep
-
-
Method Details
-
getBuildStepId
-
getBuildStepArgs
-
isTokenized
public boolean isTokenized() -
perform
Perform the build step on the execution host.Generates a temporary file and copies the content of the predefined config file (by using the buildStepId) into it. It then copies this file into the workspace directory of the execution host and executes it.
- Specified by:
performin interfaceBuildStep- Overrides:
performin classBuildStepCompatibilityLayer
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<Builder>- Overrides:
getDescriptorin classBuilder
-