@Extension public static final class PostBuildScan.DescriptorImp extends BuildStepDescriptor<Publisher>
Descriptor for PostBuildScan. Used as a singleton. The class is
marked as public so that it can be accessed from views.
See src/main/resources/hudson/plugins/hello_world/HelloWorldBuilder/*.jelly for the actual HTML fragment for the configuration screen.
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Selfclazz| Constructor and Description |
|---|
DescriptorImp() |
| Modifier and Type | Method and Description |
|---|---|
AuthenticationModel |
buildAuthenticationModel() |
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData) |
FormValidation |
doCheckappSpiderEntUrl(String value)
Performs on-the-fly validation of the form field 'name'.
|
ListBoxModel |
doFillClientNameItems()
Method for populating the dropdown menu with
all the available scan configs
|
ListBoxModel |
doFillConfigNameItems(String clientName)
Method for populating the dropdown menu with
all the available scan configs
|
ListBoxModel |
doFillScanConfigEngineGroupNameItems()
Method for populating the dropdown menu with
all the available scan engine groups
|
FormValidation |
doTestCredentials(boolean allowSelfSignedCertificate,
String appSpiderEntUrl,
String username,
Secret password)
calls the login endpoint with the provided credentials reporting success/failure back to the user via form validation
|
FormValidation |
doValidateNewScanConfig(String scanConfigName,
String scanConfigUrl) |
boolean |
getAppSpiderAllowSelfSignedCertificate() |
String |
getAppSpiderClientId() |
String |
getAppSpiderClientName() |
String |
getAppSpiderEntUrl() |
Secret |
getAppSpiderPassword() |
String |
getAppSpiderUsername() |
String |
getDisplayName() |
String[] |
getScanConfigEngines() |
String[] |
getScanConfigNames() |
boolean |
isApplicable(Class<? extends AbstractProject> aClass) |
boolean |
isAppSpiderEnableMultiClientOrSysAdmin() |
void |
setAppSpiderAllowSelfSignedCertificate(boolean appSpiderAllowSelfSignedCertificate) |
void |
setAppSpiderClientId(String appSpiderClientId) |
void |
setAppSpiderClientName(String appSpiderClientName) |
void |
setAppSpiderEnableMultiClientOrSysAdmin(boolean appSpiderAllowMultiClientOrSysAdmin) |
void |
setAppSpiderEntUrl(String appSpiderEntUrl) |
void |
setAppSpiderPassword(Secret appSpiderPassword) |
void |
setAppSpiderUsername(String appSpiderUsername) |
filteraddHelpFileRedirect, 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, toMappublic FormValidation doCheckappSpiderEntUrl(@QueryParameter String value)
value - This parameter receives the value that the user has typed.
Note that returning FormValidation.error(String) does not
prevent the form from being saved. It just means that a message will
be displayed to the user.
public boolean isApplicable(Class<? extends AbstractProject> aClass)
isApplicable in class BuildStepDescriptor<Publisher>public String getDisplayName()
getDisplayName in class Descriptor<Publisher>public String getAppSpiderEntUrl()
public void setAppSpiderEntUrl(String appSpiderEntUrl)
public String getAppSpiderUsername()
public void setAppSpiderUsername(String appSpiderUsername)
public Secret getAppSpiderPassword()
public void setAppSpiderPassword(Secret appSpiderPassword)
public boolean getAppSpiderAllowSelfSignedCertificate()
public void setAppSpiderAllowSelfSignedCertificate(boolean appSpiderAllowSelfSignedCertificate)
public boolean isAppSpiderEnableMultiClientOrSysAdmin()
public void setAppSpiderEnableMultiClientOrSysAdmin(boolean appSpiderAllowMultiClientOrSysAdmin)
public String[] getScanConfigNames()
public String[] getScanConfigEngines()
public String getAppSpiderClientId()
public void setAppSpiderClientId(String appSpiderClientId)
public String getAppSpiderClientName()
public void setAppSpiderClientName(String appSpiderClientName)
public AuthenticationModel buildAuthenticationModel()
public boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
throws Descriptor.FormException
configure in class Descriptor<Publisher>Descriptor.FormExceptionpublic ListBoxModel doFillClientNameItems() throws InterruptedException
InterruptedExceptionpublic ListBoxModel doFillConfigNameItems(@QueryParameter String clientName)
public ListBoxModel doFillScanConfigEngineGroupNameItems()
public FormValidation doTestCredentials(@QueryParameter(value="appSpiderAllowSelfSignedCertificate") boolean allowSelfSignedCertificate, @QueryParameter(value="appSpiderEntUrl") String appSpiderEntUrl, @QueryParameter(value="appSpiderUsername") String username, @QueryParameter(value="appSpiderPassword") Secret password)
allowSelfSignedCertificate - If true certificate errors will be ignored, only meaningful if URL is using httpsappSpiderEntUrl - Full URL path including protocol to the appspider rest api endpointusername - Username used for authenticationpassword - Password used for authenticationpublic FormValidation doValidateNewScanConfig(@QueryParameter(value="scanConfigName") String scanConfigName, @QueryParameter(value="scanConfigUrl") String scanConfigUrl)
Copyright © 2016–2021. All rights reserved.