Package co.ostorlab.ci.jenkins.plugin
Class OPlugin.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<T>
-
- hudson.tasks.BuildStepDescriptor<Builder>
-
- co.ostorlab.ci.jenkins.plugin.OPlugin.DescriptorImpl
-
- Enclosing class:
- OPlugin
@Symbol("ostorlabScan") @Extension public static final class OPlugin.DescriptorImpl extends BuildStepDescriptor<Builder>
Descriptor class for Build step.
-
-
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 FormValidation
doValidateParams(String apiKey, String binaryName, AbstractProject project, Job<?,?> owner)
Do validate params form validation.String
getDisplayName()
boolean
isApplicable(Class<? extends AbstractProject> aClass)
-
Methods inherited from class hudson.tasks.BuildStepDescriptor
filter
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, 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, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
doValidateParams
public FormValidation doValidateParams(@QueryParameter("apiKey") String apiKey, @QueryParameter("binaryName") String binaryName, @AncestorInPath AbstractProject project, @AncestorInPath Job<?,?> owner) throws net.sf.json.JSONException
Do validate params form validation.- Parameters:
apiKey
- the api keybinaryName
- the binary nameproject
- the projectowner
- the owner- Returns:
- the form validation
- Throws:
net.sf.json.JSONException
- the json exception
-
isApplicable
public boolean isApplicable(Class<? extends AbstractProject> aClass)
- Specified by:
isApplicable
in classBuildStepDescriptor<Builder>
-
getDisplayName
@NonNull public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<Builder>
-
-