Package se.diabol.jenkins.pipeline
Class PipelineVersionTokenMacro
java.lang.Object
org.jenkinsci.plugins.tokenmacro.TokenMacro
org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
se.diabol.jenkins.pipeline.PipelineVersionTokenMacro
- All Implemented Interfaces:
ExtensionPoint
@Extension
public class PipelineVersionTokenMacro
extends org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
The
${PIPELINE_VERSION} token: the version the pipeline's first build was given.-
Nested Class Summary
Nested classes/interfaces inherited from class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro.ParameterNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
escapeHtml -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptsMacroName(String macroName) evaluate(AbstractBuild<?, ?> context, TaskListener listener, String macroName) Methods inherited from class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
evaluate, evaluate, evaluate, handlesHtmlEscapeInternally, hasNestedContentMethods inherited from class org.jenkinsci.plugins.tokenmacro.TokenMacro
all, expand, expand, expand, expand, expandAll, expandAll, expandAll, expandAll, getAcceptedMacroNames, getAutoCompleteList, getPreviousRun, getWorkspace
-
Constructor Details
-
PipelineVersionTokenMacro
public PipelineVersionTokenMacro()
-
-
Method Details
-
evaluate
public String evaluate(AbstractBuild<?, ?> context, TaskListener listener, String macroName) throws org.jenkinsci.plugins.tokenmacro.MacroEvaluationException- Specified by:
evaluatein classorg.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro- Throws:
org.jenkinsci.plugins.tokenmacro.MacroEvaluationException
-
acceptsMacroName
- Specified by:
acceptsMacroNamein classorg.jenkinsci.plugins.tokenmacro.TokenMacro
-