Class MentionedInCommitStrategy
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<IssueStrategyExtension>
-
- org.jenkinsci.plugins.jiraext.view.IssueStrategyExtension
-
- org.jenkinsci.plugins.jiraext.view.AbstractParsingIssueStrategy
-
- org.jenkinsci.plugins.jiraext.view.MentionedInCommitStrategy
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<IssueStrategyExtension>
public class MentionedInCommitStrategy extends AbstractParsingIssueStrategy
Find JiraCommits by looking for 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 'Resolved issue [JENKINS-101] fixed stuff', this would return 'JENKINS-101' as a JiraCommit.
- Author:
- wiedsche
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MentionedInCommitStrategy.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description MentionedInCommitStrategy()
Creates a newMentionedInCommitStrategy
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
List<JiraCommit>
getJiraIssuesFromChangeSet(ChangeLogSet.Entry change)
Parse Jira ticket numbers, 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
-
-
-
-
Constructor Detail
-
MentionedInCommitStrategy
@DataBoundConstructor public MentionedInCommitStrategy()
Creates a newMentionedInCommitStrategy
object.
-
-
Method Detail
-
getJiraIssuesFromChangeSet
public List<JiraCommit> getJiraIssuesFromChangeSet(ChangeLogSet.Entry change)
Parse Jira ticket numbers, ie SSD-101, out of the given ChangeLogSet.Entry.Ticket number should be somewhere in the commit message
- Specified by:
getJiraIssuesFromChangeSet
in classAbstractParsingIssueStrategy
- Parameters:
change
-- Returns:
-
-