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
@Extension(optional=true)
public class CoverageTokenMacro
extends org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
Provides a token that evaluates to 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.Parameter
Nested 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 TypeMethodDescriptionboolean
acceptsMacroName
(String macroName) evaluate
(AbstractBuild<?, ?> abstractBuild, TaskListener taskListener, String macroName) evaluate
(Run<?, ?> run, FilePath workspace, TaskListener listener, String macroName) void
setBaseline
(String baseline) Defines which baseline should be used when evaluating the macro.void
Determines which ID should be used to choose the action for the macro evaluation.void
Defines which metric should be used when evaluating the macro.Methods inherited from class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
evaluate, evaluate, handlesHtmlEscapeInternally, hasNestedContent
Methods 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:
acceptsMacroName
in classorg.jenkinsci.plugins.tokenmacro.TokenMacro
-
evaluate
public String evaluate(AbstractBuild<?, ?> abstractBuild, TaskListener taskListener, String macroName) - Specified by:
evaluate
in classorg.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
-
evaluate
- Overrides:
evaluate
in classorg.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
-