@Symbol(value="jiraTestResultReporter") @Extension public static class JiraTestDataPublisher.JiraTestDataPublisherDescriptor extends Descriptor<hudson.tasks.junit.TestDataPublisher>
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
Modifier and Type | Field and Description |
---|---|
static StringFields |
DEFAULT_DESCRIPTION_FIELD |
static StringFields |
DEFAULT_SUMMARY_FIELD |
static String |
DESCRIPTION_FIELD_NAME |
static String |
SUMMARY_FIELD_NAME |
static List<AbstractFields> |
templates |
clazz
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
|
ListBoxModel |
doFillIssueTypeItems(String projectKey)
Method for filling the issue type select control in the job configuration page
|
FormValidation |
doValidateGlobal(String jiraUrl,
String username,
String password)
Validation for the global configuration, called when Validate Settings is clicked (global.jelly)
|
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)
|
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.
|
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, 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, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
public static final String SUMMARY_FIELD_NAME
public static final String DESCRIPTION_FIELD_NAME
public static final List<AbstractFields> templates
public static final StringFields DEFAULT_SUMMARY_FIELD
public static final StringFields DEFAULT_DESCRIPTION_FIELD
public JiraTestDataPublisherDescriptor()
public URI getJiraUri()
public String getUsername()
public 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 Descriptor<hudson.tasks.junit.TestDataPublisher>
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws Descriptor.FormException
configure
in class Descriptor<hudson.tasks.junit.TestDataPublisher>
req
- current requestjson
- form in json formatFormException
Descriptor.FormException
public hudson.tasks.junit.TestDataPublisher newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws Descriptor.FormException
newInstance
in class Descriptor<hudson.tasks.junit.TestDataPublisher>
req
- current requestjson
- form in json formatFormException
Descriptor.FormException
public FormValidation doValidateGlobal(@QueryParameter String jiraUrl, @QueryParameter String username, @QueryParameter String password)
jiraUrl
- username
- password
- public FormValidation doValidateProjectKey(@QueryParameter String projectKey)
projectKey
- public ListBoxModel doFillIssueTypeItems(@QueryParameter String projectKey)
projectKey
- @JavaScriptMethod public FormValidation validateFieldConfigs(String jsonForm) throws Descriptor.FormException, InterruptedException
jsonForm
- FormException
InterruptedException
Descriptor.FormException
public List getListDescriptors()
Copyright © 2016–2024. All rights reserved.