@Extension public static class IspwConfiguration.DescriptorImpl extends SCMDescriptor<IspwConfiguration>
IspwConfiguration. It also contains the global configuration
options as fields, just like the IspwConfiguration contains the configuration options for a jobDescriptor.FormException, Descriptor.PropertyType, Descriptor.Selfgeneration, repositoryBrowserclazz| Constructor and Description |
|---|
DescriptorImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
The method is called when the global configuration page is submitted.
|
FormValidation |
doCheckConnectionId(String connectionId)
Validator for the 'Host connection' field.
|
FormValidation |
doCheckCredentialsId(String value)
Validator for the 'Login Credential' field
|
FormValidation |
doCheckServerApplication(String value)
Validator for the 'Application' text field.
|
FormValidation |
doCheckServerLevel(String value)
Validator for the 'Level' text field.
|
FormValidation |
doCheckServerStream(String value)
Validator for the 'Stream' text field.
|
ListBoxModel |
doFillConnectionIdItems(Jenkins context,
String connectionId,
Item project)
Fills in the Host Connection selection box with applicable connections.
|
ListBoxModel |
doFillCredentialsIdItems(Jenkins context,
String credentialsId,
Item project)
Fills in the Login Credential selection box with applicable Jenkins credentials
|
ListBoxModel |
doFillLevelOptionItems()
Fills in the Level option selection box with ISPW level options
|
String |
getDisplayName()
Displays the name of the SCM, the name that appears when configuring a Jenkins job.
|
boolean |
isApplicable(Job project)
Necessary to display UI in Jenkins Pipeline.
|
getBrowserDescriptors, isApplicable, isBrowserReusable, loadaddHelpFileRedirect, 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, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMappublic boolean isApplicable(Job project)
isApplicable in class SCMDescriptor<IspwConfiguration>public String getDisplayName()
getDisplayName in class Descriptor<SCM>String value of the SCM display namepublic boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
throws Descriptor.FormException
save() method must be called. Data is defined in the global.jelly page.configure in class Descriptor<SCM>req - Stapler requestformData - Form dataFormExceptionDescriptor.FormExceptionpublic FormValidation doCheckConnectionId(@QueryParameter String connectionId)
connectionId - unique identifier for the host connection passed from the config.jelly "connectionId" fieldpublic ListBoxModel doFillConnectionIdItems(@AncestorInPath Jenkins context, @QueryParameter String connectionId, @AncestorInPath Item project)
context - filter for host connectionsconnectionId - an existing host connection identifier; can be nullproject - the Jenkins projectpublic FormValidation doCheckCredentialsId(@QueryParameter String value)
value - value passed from the config.jelly "loginCredential" fieldpublic FormValidation doCheckServerStream(@QueryParameter String value)
value - value passed from the "serverStream" fieldpublic FormValidation doCheckServerApplication(@QueryParameter String value)
value - value passed from the "serverApplication" fieldpublic FormValidation doCheckServerLevel(@QueryParameter String value)
value - value passed from the "serverLevel" fieldpublic ListBoxModel doFillCredentialsIdItems(@AncestorInPath Jenkins context, @QueryParameter String credentialsId, @AncestorInPath Item project)
context - filter for credentialspublic ListBoxModel doFillLevelOptionItems()
Copyright © 2016–2019. All rights reserved.