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
  • Constructor Details

    • JiraChangeLogAnnotator

      public JiraChangeLogAnnotator()
  • Method Details

    • annotate

      public void annotate(Run<?,?> run, ChangeLogSet.Entry change, MarkupText text)
      Overrides:
      annotate in class ChangeLogAnnotator
    • 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