org.jenkinsci.plugins.ghprb
Class GhprbTokenMacro

java.lang.Object
  extended by org.jenkinsci.plugins.tokenmacro.TokenMacro
      extended by org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
          extended by org.jenkinsci.plugins.ghprb.GhprbTokenMacro
All Implemented Interfaces:
hudson.ExtensionPoint

@Extension(optional=true)
public class GhprbTokenMacro
extends org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro

PR_Name token that expands to the PR Name. PR_User token that expands to the PR Opener's email.

Author:
Josh Caldwell

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro.Parameter
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
GhprbTokenMacro()
           
 
Method Summary
 boolean acceptsMacroName(String macroName)
           
 String evaluate(hudson.model.AbstractBuild<?,?> context, hudson.model.TaskListener listener, String macroName)
           
 
Methods inherited from class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
evaluate, hasNestedContent
 
Methods inherited from class org.jenkinsci.plugins.tokenmacro.TokenMacro
all, expand, expand, expandAll, expandAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GhprbTokenMacro

public GhprbTokenMacro()
Method Detail

acceptsMacroName

public boolean acceptsMacroName(String macroName)
Specified by:
acceptsMacroName in class org.jenkinsci.plugins.tokenmacro.TokenMacro

evaluate

public String evaluate(hudson.model.AbstractBuild<?,?> context,
                       hudson.model.TaskListener listener,
                       String macroName)
                throws org.jenkinsci.plugins.tokenmacro.MacroEvaluationException,
                       IOException,
                       InterruptedException
Specified by:
evaluate in class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
Throws:
org.jenkinsci.plugins.tokenmacro.MacroEvaluationException
IOException
InterruptedException


Copyright © 2004-2015. All Rights Reserved.