Class ChangesSinceLastBuildMacro
- java.lang.Object
-
- org.jenkinsci.plugins.tokenmacro.TokenMacro
-
- org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
-
- org.jenkinsci.plugins.tokenmacro.impl.ChangesSinceLastBuildMacro
-
- All Implemented Interfaces:
hudson.ExtensionPoint
@Extension public class ChangesSinceLastBuildMacro extends DataBoundTokenMacro
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classChangesSinceLastBuildMacro.ChangesSincePrintfSpec-
Nested classes/interfaces inherited from class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
DataBoundTokenMacro.Parameter
-
-
Field Summary
Fields Modifier and Type Field Description static StringALTERNATE_MACRO_NAMEStringdateFormatStringdefstatic StringDEFAULT_DEFAULT_VALUEStringformatstatic StringFORMAT_DEFAULT_VALUEstatic StringFORMAT_DEFAULT_VALUE_WITH_PATHSstatic StringMACRO_NAMEstatic StringPATH_FORMAT_DEFAULT_VALUEStringpathFormatStringregexStringreplacebooleanshowDependenciesbooleanshowPaths
-
Constructor Summary
Constructors Constructor Description ChangesSinceLastBuildMacro()ChangesSinceLastBuildMacro(String format, String pathFormat, boolean showPaths)
-
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
-
FORMAT_DEFAULT_VALUE
public static final String FORMAT_DEFAULT_VALUE
- See Also:
- Constant Field Values
-
PATH_FORMAT_DEFAULT_VALUE
public static final String PATH_FORMAT_DEFAULT_VALUE
- See Also:
- Constant Field Values
-
FORMAT_DEFAULT_VALUE_WITH_PATHS
public static final String FORMAT_DEFAULT_VALUE_WITH_PATHS
- See Also:
- Constant Field Values
-
DEFAULT_DEFAULT_VALUE
public static final String DEFAULT_DEFAULT_VALUE
- See Also:
- Constant Field Values
-
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
-
showPaths
public boolean showPaths
-
format
public String format
-
pathFormat
public String pathFormat
-
showDependencies
public boolean showDependencies
-
dateFormat
public String dateFormat
-
regex
public String regex
-
replace
public String replace
-
def
public String def
-
-
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
-
-