Class JobConfigMapping
java.lang.Object
org.jenkinsci.plugins.JiraTestResultReporter.JobConfigMapping
Created by tuicu.
Map from job name to configurations. A new publisher is created every time save/apply is clicked in the job config
page, but the new configurations don't apply to previous build, so we need this map in order for all the publishers
to be able to access the last configuration. Implemented as a singleton pattern. The map gets serialized every time
a new configuration is added
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classBuilder for a JobConfigEntry -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAdditionalAttachments(Job<?, ?> project) booleangetAutoRaiseIssue(Job<?, ?> project) booleangetAutoResolveIssue(Job<?, ?> project) booleangetAutoUnlinkIssue(Job<?, ?> project) Getter for the last configured fieldsstatic JobConfigMappingGetter for the singleton instancegetIssueKeyPattern(Job<?, ?> project) Getter for the issue key pattern, used to validate user inputgetIssueType(Job<?, ?> project) Getter for the last configured issue typebooleangetManualAddIssue(Job<?, ?> project) booleangetOverrideResolvedIssues(Job<?, ?> project) getProjectKey(Job<?, ?> project) Getter for the last configured project keyvoidsaveConfig(Job<?, ?> project, String projectKey, Long issueType, List<AbstractFields> configs, boolean autoRaiseIssue, boolean autoResolveIssue, boolean autoUnlinkIssue, boolean overrideResolvedIssues, boolean additionalAttachments, boolean manualAddIssue) Method for setting the last configuration made for a projectvoidsaveConfig(Job<?, ?> project, JobConfigMapping.JobConfigEntry entry) Method for setting the last configuration made for a project
-
Method Details
-
getInstance
Getter for the singleton instance- Returns:
-
saveConfig
public void saveConfig(Job<?, ?> project, String projectKey, Long issueType, List<AbstractFields> configs, boolean autoRaiseIssue, boolean autoResolveIssue, boolean autoUnlinkIssue, boolean overrideResolvedIssues, boolean additionalAttachments, boolean manualAddIssue) Method for setting the last configuration made for a project- Parameters:
project-projectKey-issueType-configs-
-
saveConfig
Method for setting the last configuration made for a project -
getConfig
Getter for the last configured fields- Parameters:
project-- Returns:
-
getIssueType
Getter for the last configured issue type- Parameters:
project-- Returns:
-
getProjectKey
Getter for the last configured project key- Parameters:
project-- Returns:
-
getAutoRaiseIssue
-
getAutoResolveIssue
-
getAutoUnlinkIssue
-
getAdditionalAttachments
-
getOverrideResolvedIssues
-
getManualAddIssue
-
getIssueKeyPattern
Getter for the issue key pattern, used to validate user input- Parameters:
project-- Returns:
-