Package hudson.plugins.jira
Class JiraChangeLogAnnotator
- java.lang.Object
-
- hudson.scm.ChangeLogAnnotator
-
- hudson.plugins.jira.JiraChangeLogAnnotator
-
- All Implemented Interfaces:
ExtensionPoint
@Extension public class JiraChangeLogAnnotator extends ChangeLogAnnotator
ChangeLogAnnotator
that picks up Jira issue IDs.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.scm.ChangeLogAnnotator
annotators
-
-
Constructor Summary
Constructors Constructor Description JiraChangeLogAnnotator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
annotate(Run<?,?> run, ChangeLogSet.Entry change, MarkupText text)
protected boolean
hasProjectForIssue(String id, JiraSite site, Run run)
Checks if the given Jira id will be likely to exist in this issue tracker.-
Methods inherited from class hudson.scm.ChangeLogAnnotator
all, annotate, register, unregister
-
-
-
-
Method Detail
-
annotate
public void annotate(Run<?,?> run, ChangeLogSet.Entry change, MarkupText text)
- Overrides:
annotate
in classChangeLogAnnotator
-
hasProjectForIssue
protected boolean hasProjectForIssue(String id, JiraSite site, Run run)
Checks if the given Jira id will be likely to exist in this issue tracker. This method checks whether the key portion is a valid key (except that it can potentially use stale data). Number portion is not checked at all.- Parameters:
id
- String like MNG-1234
-
-