Class CoverageTokenMacro
java.lang.Object
org.jenkinsci.plugins.tokenmacro.TokenMacro
org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
io.jenkins.plugins.coverage.metrics.steps.CoverageTokenMacro
- All Implemented Interfaces:
ExtensionPoint
@OptionalExtension(requireClasses=org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro.class)
public class CoverageTokenMacro
extends org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
Provides a token that evaluates the number of issues.
- Author:
- Ullrich Hafner
-
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<?, ?> abstractBuild, TaskListener taskListener, String macroName) evaluate(Run<?, ?> run, FilePath workspace, TaskListener listener, String macroName) voidsetBaseline(String baseline) Defines which baseline should be used when evaluating the macro.voidDetermines which ID should be used to choose the action for the macro evaluation.voidDefines which metric should be used when evaluating the macro.Methods inherited from class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
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
-
CoverageTokenMacro
public CoverageTokenMacro()
-
-
Method Details
-
setId
Determines which ID should be used to choose the action for the macro evaluation.- Parameters:
id- the ID of the results to select
-
setMetric
Defines which metric should be used when evaluating the macro.- Parameters:
metric- the metric of the values to show
-
setBaseline
Defines which baseline should be used when evaluating the macro.- Parameters:
baseline- the baseline of the values to show
-
acceptsMacroName
- Specified by:
acceptsMacroNamein classorg.jenkinsci.plugins.tokenmacro.TokenMacro
-
evaluate
public String evaluate(AbstractBuild<?, ?> abstractBuild, TaskListener taskListener, String macroName) - Specified by:
evaluatein classorg.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
-
evaluate
- Overrides:
evaluatein classorg.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
-