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
Modifier and TypeClassDescriptionstatic class
static class
Builder fot a JobConfigEntry -
Method Summary
Modifier and TypeMethodDescriptionboolean
getAdditionalAttachments
(Job project) boolean
getAutoRaiseIssue
(Job project) boolean
getAutoResolveIssue
(Job project) boolean
getAutoUnlinkIssue
(Job project) Getter for the last configured fieldsstatic JobConfigMapping
Getter 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 typeboolean
getOverrideResolvedIssues
(Job project) getProjectKey
(Job project) Getter for the last configured project keyvoid
saveConfig
(Job project, String projectKey, Long issueType, List<AbstractFields> configs, boolean autoRaiseIssue, boolean autoResolveIssue, boolean autoUnlinkIssue, boolean overrideResolvedIssues, boolean additionalAttachments) Method for setting the last configuration made for a projectvoid
saveConfig
(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) 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
-
getOverrideResolvedIssues
-
getAutoResolveIssue
-
getAutoUnlinkIssue
-
getAdditionalAttachments
-
getIssueKeyPattern
Getter for the issue key pattern, used to validate user input- Parameters:
project
-- Returns:
-