public class ModifyTicketsTemplate extends hudson.model.AbstractDescribableImpl<ModifyTicketsTemplate>
Modifier and Type | Class and Description |
---|---|
static class |
ModifyTicketsTemplate.DescriptorImpl
The descriptor class.
|
Constructor and Description |
---|
ModifyTicketsTemplate(String jqlFilter,
String commitRegEx,
String ticketSource,
List<TicketModification> modifications)
Databound constructor, called by Jenkins.
|
Modifier and Type | Method and Description |
---|---|
void |
applyModifications(JIRAAccessTool jira,
org.apache.commons.lang.text.StrSubstitutor varReplacer,
PrintStream logger,
hudson.model.AbstractBuild<?,?> build)
Selects the tickets to modify based on the settings of this template and then applies all modifications on each one.
|
String |
getCommitRegEx() |
String |
getJqlFilter() |
List<TicketModification> |
getModifications() |
String |
getTicketSource() |
@DataBoundConstructor public ModifyTicketsTemplate(String jqlFilter, String commitRegEx, String ticketSource, List<TicketModification> modifications)
jqlFilter
- the jql filtercommitRegEx
- the commit regular expression matcherticketSource
- ticket sourcemodifications
- the modificationspublic String getJqlFilter()
public List<TicketModification> getModifications()
public String getCommitRegEx()
public String getTicketSource()
public void applyModifications(JIRAAccessTool jira, org.apache.commons.lang.text.StrSubstitutor varReplacer, PrintStream logger, hudson.model.AbstractBuild<?,?> build)
jira
- the jira used for all operationsvarReplacer
- the variable replacer. Must especially contain ghprbGhRepository and ghprbPullId in case of pull-request based ticket selection.logger
- the logger used to print information.build
- the current buildCopyright © 2004-2018. All Rights Reserved.