org.jenkinsci.plugins.tokenmacro.impl
Class EnvironmentVariableMacro
java.lang.Object
org.jenkinsci.plugins.tokenmacro.TokenMacro
org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
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 classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
|
Field Summary |
java.lang.String |
var
|
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
var
public java.lang.String var
EnvironmentVariableMacro
public EnvironmentVariableMacro()
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.