@Extension public static class PdsConfiguration.PdsDescriptorImpl extends hudson.scm.SCMDescriptor<PdsConfiguration>
PdsConfiguration. It also contains the global configuration
options as fields, just like the PdsConfiguration contains the configuration options for a job| Constructor and Description |
|---|
PdsDescriptorImpl()
Constructor.
|
| 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.
|
hudson.util.FormValidation |
doCheckCredentialsId(String value)
Validator for the 'Login Credentials' field.
|
hudson.util.FormValidation |
doCheckFileExtension(String value)
Validator for the 'File extension to assign' text field.
|
hudson.util.FormValidation |
doCheckFilterPattern(String value)
Validator for the 'Filter pattern' text field.
|
hudson.util.FormValidation |
doCheckHostPort(String value)
Validator for the 'Host:port' text field.
|
hudson.util.ListBoxModel |
doFillCodePageItems()
Fills in the Code page selection box with code pages.
|
hudson.util.ListBoxModel |
doFillCredentialsIdItems(jenkins.model.Jenkins context,
String credentialsId,
hudson.model.Item project)
Fills in the Login Credentials selection box with applicable Jenkins credentials.
|
String |
getDisplayName()
Displays the name of the SCM, the name that appears when configuring a Jenkins job.
|
boolean |
isApplicable(hudson.model.Job project)
Necessary to display UI in Jenkins Pipeline.
|
getBrowserDescriptors, isApplicable, isBrowserReusable, loadaddHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, 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(hudson.model.Job project)
isApplicable in class hudson.scm.SCMDescriptor<PdsConfiguration>public String getDisplayName()
getDisplayName in class hudson.model.Descriptor<hudson.scm.SCM>String value of the SCM display namepublic boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
throws hudson.model.Descriptor.FormException
save() method must be called. Data is defined in the global.jelly page.configure in class hudson.model.Descriptor<hudson.scm.SCM>req - Stapler requestformData - Form datatrue if able to configure and continue to next pageFormExceptionhudson.model.Descriptor.FormExceptionpublic hudson.util.FormValidation doCheckFilterPattern(@QueryParameter
String value)
throws IOException,
javax.servlet.ServletException
value - value passed from the config.jelly "filterPattern" fieldIOExceptionjavax.servlet.ServletExceptionpublic hudson.util.FormValidation doCheckHostPort(@QueryParameter
String value)
throws IOException,
javax.servlet.ServletException
value - value passed from the config.jelly "hostPort" fieldIOExceptionjavax.servlet.ServletExceptionpublic hudson.util.FormValidation doCheckFileExtension(@QueryParameter
String value)
throws IOException,
javax.servlet.ServletException
value - value passed from the config.jelly "fileExtension" fieldIOExceptionjavax.servlet.ServletExceptionpublic hudson.util.FormValidation doCheckCredentialsId(@QueryParameter
String value)
throws IOException,
javax.servlet.ServletException
value - value passed from the config.jelly "credentialsId" fieldIOExceptionjavax.servlet.ServletExceptionpublic hudson.util.ListBoxModel doFillCredentialsIdItems(@AncestorInPath
jenkins.model.Jenkins context,
@QueryParameter
String credentialsId,
@AncestorInPath
hudson.model.Item project)
throws IOException,
javax.servlet.ServletException
context - filter for credentialsIOExceptionjavax.servlet.ServletExceptionpublic hudson.util.ListBoxModel doFillCodePageItems()
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionCopyright © 2016–2017. All rights reserved.