Class ScriptlerBuilder.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<T>
-
- hudson.tasks.BuildStepDescriptor<Builder>
-
- org.jenkinsci.plugins.scriptler.builder.ScriptlerBuilder.DescriptorImpl
-
- Enclosing class:
- ScriptlerBuilder
@Extension public static final class ScriptlerBuilder.DescriptorImpl extends BuildStepDescriptor<Builder>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
-
Field Summary
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description DescriptorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDisplayName()
net.sf.json.JSONArray
getParameters(String scriptlerScriptId)
gets the argument description to be displayed on the screen when selecting a config in the dropdownPermission
getRequiredPermission()
List<Script>
getScripts()
boolean
isApplicable(Class<? extends AbstractProject> jobType)
ScriptlerBuilder
newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
-
Methods inherited from class hudson.tasks.BuildStepDescriptor
filter
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
isApplicable
public boolean isApplicable(Class<? extends AbstractProject> jobType)
- Specified by:
isApplicable
in classBuildStepDescriptor<Builder>
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<Builder>
-
getRequiredPermission
public Permission getRequiredPermission()
-
newInstance
public ScriptlerBuilder newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
- Overrides:
newInstance
in classDescriptor<Builder>
-
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
-
-