Class ScriptlerBuilder.DescriptorImpl

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

@Extension public static final class ScriptlerBuilder.DescriptorImpl extends BuildStepDescriptor<Builder>
  • Constructor Details

    • DescriptorImpl

      public DescriptorImpl()
  • Method Details

    • isApplicable

      public boolean isApplicable(Class<? extends AbstractProject> jobType)
      Specified by:
      isApplicable in class BuildStepDescriptor<Builder>
    • getDisplayName

      @NonNull public String getDisplayName()
      Overrides:
      getDisplayName in class Descriptor<Builder>
    • getRequiredPermission

      public Permission getRequiredPermission()
    • newInstance

      public ScriptlerBuilder newInstance(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject formData)
      Overrides:
      newInstance in class Descriptor<Builder>
    • getScripts

      public List<Script> getScripts()
    • getParameters

      @JavaScriptMethod public net.sf.json.JSONArray getParameters(String scriptlerScriptId)
      gets the argument description to be displayed on the screen when selecting a config in the dropdown
      Parameters:
      scriptlerScriptId - the config id to get the arguments description for
      Returns:
      the description