Class PowerShellBuildStep.DescriptorImpl

java.lang.Object
hudson.model.Descriptor<Builder>
hudson.tasks.BuildStepDescriptor<Builder>
org.jenkinsci.plugins.managedscripts.PowerShellBuildStep.DescriptorImpl
All Implemented Interfaces:
Saveable, Loadable, OnMaster
Enclosing class:
PowerShellBuildStep

@Extension(ordinal=60.0) public static final class PowerShellBuildStep.DescriptorImpl extends BuildStepDescriptor<Builder>
Descriptor for PowerShellBuildStep.
  • Constructor Details

    • DescriptorImpl

      public DescriptorImpl()
  • Method Details

    • isApplicable

      public boolean isApplicable(Class<? extends AbstractProject> aClass)
      Enables this builder for all kinds of projects.
      Specified by:
      isApplicable in class BuildStepDescriptor<Builder>
    • getDisplayName

      public String getDisplayName()
      This human readable name is used in the configuration screen.
      Overrides:
      getDisplayName in class Descriptor<Builder>
    • doCheckBuildStepId

      public org.kohsuke.stapler.HttpResponse doCheckBuildStepId(org.kohsuke.stapler.StaplerRequest req, @AncestorInPath Item context, @QueryParameter String buildStepId)
      validate that an existing config was chosen
      Parameters:
      buildStepId - the buildStepId
      Returns:
    • doFillBuildStepIdItems

      public ListBoxModel doFillBuildStepIdItems(@AncestorInPath ItemGroup context)
      Return all batch files (templates) that the user can choose from when creating a build step. Ordered by name.
      Returns:
      A collection of batch files of type WinBatchConfig.