Package com.stackrox.jenkins.plugins
Class StackroxBuilder.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<T>
-
- hudson.tasks.BuildStepDescriptor<Builder>
-
- com.stackrox.jenkins.plugins.StackroxBuilder.DescriptorImpl
-
- Enclosing class:
- StackroxBuilder
@Symbol("stackrox") @Extension public static final class StackroxBuilder.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 boolean
configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
FormValidation
doCheckApiToken(String apiToken)
FormValidation
doCheckPortalAddress(String portalAddress)
FormValidation
doTestConnection(String portalAddress, String apiToken, boolean tlsVerify, String caCertPEM)
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, 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, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
isApplicable
public boolean isApplicable(Class<? extends AbstractProject> aClass)
- Specified by:
isApplicable
in classBuildStepDescriptor<Builder>
-
getDisplayName
@Nonnull public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<Builder>
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws Descriptor.FormException
- Overrides:
configure
in classDescriptor<Builder>
- Throws:
Descriptor.FormException
-
doCheckPortalAddress
public FormValidation doCheckPortalAddress(@QueryParameter String portalAddress)
-
doCheckApiToken
public FormValidation doCheckApiToken(@QueryParameter String apiToken)
-
doTestConnection
@POST public FormValidation doTestConnection(@QueryParameter("portalAddress") String portalAddress, @QueryParameter("apiToken") String apiToken, @QueryParameter("enableTLSVerification") boolean tlsVerify, @QueryParameter("caCertPEM") String caCertPEM)
-
-