Class PowerShellBuildStep
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
hudson.tasks.CommandInterpreter
org.jenkinsci.plugins.managedscripts.PowerShellBuildStep
- All Implemented Interfaces:
ExtensionPoint,Describable<Builder>,BuildStep,EnvVarsFilterableBuilder
A project that uses this builder can choose a build step from a list of predefined powershell files that are used as command line scripts.
- Author:
- Arnaud Tamaillon (Greybird)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final classDescriptor forPowerShellBuildStep.Nested 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
ConstructorsConstructorDescriptionPowerShellBuildStep(String buildStepId, boolean defineArgs, PowerShellBuildStep.ArgValue[] buildStepArgs) The constructor used at form submissionPowerShellBuildStep(String buildStepId, String[] buildStepArgs) The constructor -
Method Summary
Methods inherited from class hudson.tasks.CommandInterpreter
buildEnvVarsFilterRules, createScriptFile, getCommand, getConfiguredLocalRules, isErrorlevelForUnstableBuild, join, perform, performMethods inherited from class hudson.tasks.Builder
all, getRequiredMonitorService, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, prebuild
-
Constructor Details
-
PowerShellBuildStep
@DataBoundConstructor public PowerShellBuildStep(String buildStepId, boolean defineArgs, PowerShellBuildStep.ArgValue[] buildStepArgs) 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 values
-
PowerShellBuildStep
The constructor- Parameters:
buildStepId- the Id of the config filebuildStepArgs- list of arguments specified as buildStepargs
-
-
Method Details
-
getBuildStepId
-
getBuildStepArgs
-
buildCommandLine
- Specified by:
buildCommandLinein classCommandInterpreter
-
getContents
- Specified by:
getContentsin classCommandInterpreter
-
getFileExtension
- Specified by:
getFileExtensionin classCommandInterpreter
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<Builder>- Overrides:
getDescriptorin classBuilder
-