@Extension public static class IspwConfiguration.DescriptorImpl extends AbstractConfiguration.AbstractConfigurationImpl<IspwConfiguration>
IspwConfiguration
. It also contains the global configuration
options as fields, just like the IspwConfiguration
contains the configuration options for a jobModifier and Type | Field and Description |
---|---|
static boolean |
ispwDownloadIncl |
static boolean |
ispwDownloadWithCompileOnly |
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.
|
hudson.util.FormValidation |
doCheckConnectionId(String connectionId)
Validator for the 'Host connection' field.
|
hudson.util.FormValidation |
doCheckCredentialsId(String value)
Validator for the 'Login Credential' field
|
hudson.util.FormValidation |
doCheckServerApplication(String value)
Validator for the 'Application' text field.
|
hudson.util.FormValidation |
doCheckServerLevel(String value)
Validator for the 'Level' text field.
|
hudson.util.FormValidation |
doCheckServerStream(String value)
Validator for the 'Stream' text field.
|
hudson.util.ListBoxModel |
doFillConnectionIdItems(jenkins.model.Jenkins context,
String connectionId,
hudson.model.Item project)
Fills in the Host Connection selection box with applicable connections.
|
hudson.util.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(hudson.model.Job project)
Necessary to display UI in Jenkins Pipeline.
|
doFillCredentialsIdItems
getBrowserDescriptors, getGeneration, incrementGeneration, isApplicable, isBrowserReusable, load
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, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
public static final boolean ispwDownloadIncl
public static final boolean ispwDownloadWithCompileOnly
public boolean isApplicable(hudson.model.Job project)
isApplicable
in class hudson.scm.SCMDescriptor<IspwConfiguration>
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 dataFormException
hudson.model.Descriptor.FormException
public hudson.util.FormValidation doCheckConnectionId(@QueryParameter String connectionId)
connectionId
- unique identifier for the host connection passed from the config.jelly "connectionId" fieldpublic hudson.util.ListBoxModel doFillConnectionIdItems(@AncestorInPath jenkins.model.Jenkins context, @QueryParameter String connectionId, @AncestorInPath hudson.model.Item project)
context
- filter for host connectionsconnectionId
- an existing host connection identifier; can be nullproject
- the Jenkins projectpublic hudson.util.FormValidation doCheckCredentialsId(@QueryParameter String value)
value
- value passed from the config.jelly "loginCredential" fieldpublic hudson.util.FormValidation doCheckServerStream(@QueryParameter String value)
value
- value passed from the "serverStream" fieldpublic hudson.util.FormValidation doCheckServerApplication(@QueryParameter String value)
value
- value passed from the "serverApplication" fieldpublic hudson.util.FormValidation doCheckServerLevel(@QueryParameter String value)
value
- value passed from the "serverLevel" fieldpublic hudson.util.ListBoxModel doFillLevelOptionItems()
Copyright © 2016–2023. All rights reserved.