org.jenkinsci.plugins.tokenmacro.impl
Class EnvironmentVariableMacro

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

@Extension
public class EnvironmentVariableMacro
extends DataBoundTokenMacro

Token that expands variables from the build environment.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
DataBoundTokenMacro.Parameter
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 java.lang.String var
           
 
Constructor Summary
EnvironmentVariableMacro()
           
 
Method Summary
 boolean acceptsMacroName(java.lang.String macroName)
          Returns true if this object can evaluate the macro of the given name.
 java.lang.String evaluate(hudson.model.AbstractBuild<?,?> context, hudson.model.TaskListener listener, java.lang.String macroName)
           
 
Methods inherited from class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
evaluate
 
Methods inherited from class org.jenkinsci.plugins.tokenmacro.TokenMacro
all, expand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

var

public java.lang.String var
Constructor Detail

EnvironmentVariableMacro

public EnvironmentVariableMacro()
Method Detail

evaluate

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

acceptsMacroName

public boolean acceptsMacroName(java.lang.String macroName)
Description copied from class: TokenMacro
Returns true if this object can evaluate the macro of the given name.

Specified by:
acceptsMacroName in class TokenMacro
Parameters:
macroName - By convention we encourage all caps name.
Returns:
true ... to claim the macro of the given name and have TokenMacro.evaluate(AbstractBuild, TaskListener, String, Map, ListMultimap) called.


Copyright © 2004-2011. All Rights Reserved.