public abstract class JclDescriptorImpl<T extends hudson.tasks.BuildStep & hudson.model.Describable<T>>
extends hudson.tasks.BuildStepDescriptor<hudson.tasks.Builder>
SubmitJclBuilder. It also contains the global configuration options as fields,
just like the SubmitJclBuilder contains the configuration options for a job| Constructor and Description |
|---|
JclDescriptorImpl()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData) |
hudson.util.FormValidation |
doCheckConnectionId(String connectionId)
Validator for the 'Host connection' field.
|
hudson.util.FormValidation |
doCheckCredentialsId(String credentialsId)
Validator for the 'Login credentials' field.
|
hudson.util.FormValidation |
doCheckMaxConditionCode(String maxConditionCode)
Validator for the 'Max Condition Code' 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 |
doFillCredentialsIdItems(jenkins.model.Jenkins context,
String credentialsId,
hudson.model.Item project)
Fills in the Login Credentials selection box with applicable connections.
|
boolean |
isApplicable(Class<? extends hudson.model.AbstractProject> aClass) |
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMappublic JclDescriptorImpl()
In order to load the persisted global configuration, you have to call load() in the constructor.
public boolean isApplicable(Class<? extends hudson.model.AbstractProject> aClass)
isApplicable in class hudson.tasks.BuildStepDescriptor<hudson.tasks.Builder>public boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
throws hudson.model.Descriptor.FormException
configure in class hudson.model.Descriptor<hudson.tasks.Builder>hudson.model.Descriptor.FormExceptionpublic hudson.util.FormValidation doCheckConnectionId(@QueryParameter
String connectionId)
connectionId - unique identifier for the host connection passed from the config.jelly "connectionId" fieldpublic hudson.util.FormValidation doCheckCredentialsId(@QueryParameter
String credentialsId)
credentialsId - login credentials passed from the config.jelly "credentialsId" fieldpublic hudson.util.FormValidation doCheckMaxConditionCode(@QueryParameter
String maxConditionCode)
maxConditionCode - a maximum condition code passed from the config.jelly "maxConditionCode" 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.ListBoxModel doFillCredentialsIdItems(@AncestorInPath
jenkins.model.Jenkins context,
@QueryParameter
String credentialsId,
@AncestorInPath
hudson.model.Item project)
context - filter for login credentialscredentialsId - existing login credentials; can be nullproject - the Jenkins projectCopyright © 2016–2022. All rights reserved.