Class FirstWordOfCommitStrategy
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<IssueStrategyExtension>
-
- org.jenkinsci.plugins.jiraext.view.IssueStrategyExtension
-
- org.jenkinsci.plugins.jiraext.view.AbstractParsingIssueStrategy
-
- org.jenkinsci.plugins.jiraext.view.FirstWordOfCommitStrategy
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<IssueStrategyExtension>
public class FirstWordOfCommitStrategy extends AbstractParsingIssueStrategy
Find JiraCommits by looking for the first word in the build's changelog. Issues must match in the pattern defined in global config. For example, if prefix is set to 'JENKINS-,FOO-' And a commit had the message 'JENKINS-101 fixed stuff', this would return 'JENKINS-101' as a JiraCommit.- Author:
- dalvizu
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FirstWordOfCommitStrategy.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description FirstWordOfCommitStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
List<JiraCommit>
getJiraIssuesFromChangeSet(ChangeLogSet.Entry change)
Parse a Jira ticket number, ie SSD-101, out of the given ChangeLogSet.Entry.int
hashCode()
-
Methods inherited from class org.jenkinsci.plugins.jiraext.view.AbstractParsingIssueStrategy
getJiraCommits
-
Methods inherited from class org.jenkinsci.plugins.jiraext.view.IssueStrategyExtension
getDescriptor
-
-
-
-
Method Detail
-
getJiraIssuesFromChangeSet
public List<JiraCommit> getJiraIssuesFromChangeSet(ChangeLogSet.Entry change)
Parse a Jira ticket number, ie SSD-101, out of the given ChangeLogSet.Entry. Ticket number is assumed to be the first word of the commit message- Specified by:
getJiraIssuesFromChangeSet
in classAbstractParsingIssueStrategy
- Parameters:
change
- - the change entry to- Returns:
-
-