com.sonyericsson.hudson.plugins.gerrit.trigger
Class ChangeIdAnnotator

java.lang.Object
  extended by hudson.scm.ChangeLogAnnotator
      extended by com.sonyericsson.hudson.plugins.gerrit.trigger.ChangeIdAnnotator
All Implemented Interfaces:
hudson.ExtensionPoint

@Extension
public class ChangeIdAnnotator
extends hudson.scm.ChangeLogAnnotator

Turns "Change-ID: XXXX" into a hyperlink to Gerrit.

Author:
Kohsuke Kawaguchi

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.scm.ChangeLogAnnotator
annotators
 
Constructor Summary
ChangeIdAnnotator()
           
 
Method Summary
 void annotate(hudson.model.AbstractBuild<?,?> build, hudson.scm.ChangeLogSet.Entry change, hudson.MarkupText text)
           
 void annotate(hudson.model.AbstractProject<?,?> project, hudson.MarkupText text, IGerritHudsonTriggerConfig config)
          Annotates Gerrit change IDs in changelogs.
 
Methods inherited from class hudson.scm.ChangeLogAnnotator
all, register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeIdAnnotator

public ChangeIdAnnotator()
Method Detail

annotate

public void annotate(hudson.model.AbstractBuild<?,?> build,
                     hudson.scm.ChangeLogSet.Entry change,
                     hudson.MarkupText text)
Specified by:
annotate in class hudson.scm.ChangeLogAnnotator

annotate

public void annotate(hudson.model.AbstractProject<?,?> project,
                     hudson.MarkupText text,
                     IGerritHudsonTriggerConfig config)
Annotates Gerrit change IDs in changelogs.

Parameters:
project - The project
text - The initial text
config - The Gerrit trigger config


Copyright © 2004-2012. All Rights Reserved.