@Extension
public static class JiraTestDataPublisher.JiraTestDataPublisherDescriptor
extends hudson.model.Descriptor<hudson.tasks.junit.TestDataPublisher>
| Modifier and Type | Field and Description |
|---|---|
static List<AbstractFields> |
templates |
| Constructor and Description |
|---|
JiraTestDataPublisherDescriptor()
Constructor
loads the serialized descriptor from the previous run
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json)
Method for obtaining the global configurations (global.jelly), when save/apply is clicked
|
hudson.util.ListBoxModel |
doFillIssueTypeItems(String projectKey)
Method for filling the issue type select control in the job configuration page
|
hudson.util.FormValidation |
doValidateGlobal(String jiraUrl,
String username,
String password)
Validation for the global configuration, called when Validate Settings is clicked (global.jelly)
|
hudson.util.FormValidation |
doValidateProjectKey(String projectKey)
Validation for the project key
|
MetadataCache.CacheEntry |
getCacheEntry(String projectKey,
String issueType)
Getter for the cache entry
|
String |
getDefaultDescription()
Getter for the description template
|
String |
getDefaultSummary()
Getter for the summary template
|
String |
getDisplayName()
Getter for the display name
|
URI |
getJiraUri() |
String |
getJiraUrl() |
List |
getListDescriptors()
Getter for the descriptors required for the hetero-list in job config page (config.jelly)
|
hudson.util.Secret |
getPassword() |
com.atlassian.jira.rest.client.api.JiraRestClient |
getRestClient() |
HashMap<String,FullStatus> |
getStatusesMap()
Getter for the statuses map, contains information about status category of each status
|
String |
getUsername() |
hudson.tasks.junit.TestDataPublisher |
newInstance(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json)
Method for creating a new, configured JiraTestDataPublisher.
|
Object |
readResolve()
Method for resolving transient objects after deserialization.
|
hudson.util.FormValidation |
validateFieldConfigs(String jsonForm)
Ugly hack (part 2, see config.jelly for part1) for validating the configured values for fields.
|
addHelpFileRedirect, 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, load, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMappublic static final List<AbstractFields> templates
public JiraTestDataPublisherDescriptor()
public URI getJiraUri()
public String getUsername()
public hudson.util.Secret getPassword()
public String getJiraUrl()
public com.atlassian.jira.rest.client.api.JiraRestClient getRestClient()
public String getDefaultSummary()
public String getDefaultDescription()
public HashMap<String,FullStatus> getStatusesMap()
public MetadataCache.CacheEntry getCacheEntry(String projectKey, String issueType)
projectKey - issueType - public Object readResolve()
public String getDisplayName()
getDisplayName in class hudson.model.Descriptor<hudson.tasks.junit.TestDataPublisher>public boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json)
throws hudson.model.Descriptor.FormException
configure in class hudson.model.Descriptor<hudson.tasks.junit.TestDataPublisher>req - current requestjson - form in json formatFormExceptionhudson.model.Descriptor.FormExceptionpublic hudson.tasks.junit.TestDataPublisher newInstance(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json)
throws hudson.model.Descriptor.FormException
newInstance in class hudson.model.Descriptor<hudson.tasks.junit.TestDataPublisher>req - current requestjson - form in json formatFormExceptionhudson.model.Descriptor.FormExceptionpublic hudson.util.FormValidation doValidateGlobal(@QueryParameter
String jiraUrl,
@QueryParameter
String username,
@QueryParameter
String password)
jiraUrl - username - password - public hudson.util.FormValidation doValidateProjectKey(@QueryParameter
String projectKey)
projectKey - public hudson.util.ListBoxModel doFillIssueTypeItems(@QueryParameter
String projectKey)
projectKey - @JavaScriptMethod public hudson.util.FormValidation validateFieldConfigs(String jsonForm) throws hudson.model.Descriptor.FormException, InterruptedException
jsonForm - FormExceptionInterruptedExceptionhudson.model.Descriptor.FormExceptionpublic List getListDescriptors()
Copyright © 2016. All rights reserved.