Class BuildCauseMacro
- java.lang.Object
-
- org.jenkinsci.plugins.tokenmacro.TokenMacro
-
- org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
-
- org.jenkinsci.plugins.tokenmacro.impl.BuildCauseMacro
-
- All Implemented Interfaces:
hudson.ExtensionPoint
@Extension public class BuildCauseMacro extends DataBoundTokenMacro
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
DataBoundTokenMacro.Parameter
-
-
Field Summary
Fields Modifier and Type Field Description static StringALTERNATE_MACRO_NAMEStringdatastatic StringMACRO_NAME
-
Constructor Summary
Constructors Constructor Description BuildCauseMacro()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanacceptsMacroName(String macroName)Returns true if this object can evaluate the macro of the given name.Stringevaluate(hudson.model.AbstractBuild<?,?> build, hudson.model.TaskListener listener, String macroName)Stringevaluate(hudson.model.Run<?,?> run, hudson.FilePath workspace, hudson.model.TaskListener listener, String macroName)List<String>getAcceptedMacroNames()-
Methods inherited from class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
evaluate, evaluate, hasNestedContent
-
Methods inherited from class org.jenkinsci.plugins.tokenmacro.TokenMacro
all, expand, expand, expand, expand, expandAll, expandAll, expandAll, expandAll, getAutoCompleteList, getPreviousRun, getWorkspace
-
-
-
-
Field Detail
-
MACRO_NAME
public static final String MACRO_NAME
- See Also:
- Constant Field Values
-
ALTERNATE_MACRO_NAME
public static final String ALTERNATE_MACRO_NAME
- See Also:
- Constant Field Values
-
data
public String data
-
-
Method Detail
-
acceptsMacroName
public boolean acceptsMacroName(String macroName)
Description copied from class:TokenMacroReturns true if this object can evaluate the macro of the given name.- Specified by:
acceptsMacroNamein classTokenMacro- 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.
-
getAcceptedMacroNames
public List<String> getAcceptedMacroNames()
- Overrides:
getAcceptedMacroNamesin classTokenMacro
-
evaluate
public String evaluate(hudson.model.AbstractBuild<?,?> build, hudson.model.TaskListener listener, String macroName) throws MacroEvaluationException, IOException, InterruptedException
- Specified by:
evaluatein classDataBoundTokenMacro- Throws:
MacroEvaluationExceptionIOExceptionInterruptedException
-
evaluate
public String evaluate(hudson.model.Run<?,?> run, hudson.FilePath workspace, hudson.model.TaskListener listener, String macroName) throws MacroEvaluationException, IOException, InterruptedException
- Overrides:
evaluatein classDataBoundTokenMacro- Throws:
MacroEvaluationExceptionIOExceptionInterruptedException
-
-