@Symbol(value="zAdviserUpload")
@Extension
public static final class ZAdviserUploadData.DescriptorImpl
extends hudson.tasks.BuildStepDescriptor<hudson.tasks.Builder>
ZAdviserUploadData. It also contains the global configuration options as
fields, just like the ZAdviserUploadData contains the configuration options for a job| Constructor and Description |
|---|
DescriptorImpl()
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 |
doCheckUploadDataFile(String uploadDataFile)
Validator for the 'Upload Data File' 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.
|
String |
getDisplayName() |
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, 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 DescriptorImpl()
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.FormException@GET
public hudson.util.FormValidation doCheckConnectionId(@QueryParameter
String connectionId)
connectionId - unique identifier for the host connection passed from the config.jelly "connectionId" field@POST
public hudson.util.FormValidation doCheckUploadDataFile(@QueryParameter
String uploadDataFile)
If a valid data file exists, then the access key will be validated for existence.
uploadDataFile - the upload data file passed from the config.jelly "uploadDataFile" fieldpublic String getDisplayName()
getDisplayName in class hudson.model.Descriptor<hudson.tasks.Builder>@POST
public 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 projectCopyright © 2016–2022. All rights reserved.