Class IssuesSizeTokenMacro

java.lang.Object
org.jenkinsci.plugins.tokenmacro.TokenMacro
org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
io.jenkins.plugins.analysis.core.tokens.IssuesSizeTokenMacro
All Implemented Interfaces:
ExtensionPoint

@Extension(optional=true) public class IssuesSizeTokenMacro 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    evaluate(AbstractBuild<?,?> abstractBuild, TaskListener taskListener, String macroName)
     
    evaluate(Run<?,?> run, FilePath workspace, TaskListener listener, String macroName)
     
    void
     
    void
    Defines which value should be computed in 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • IssuesSizeTokenMacro

      public IssuesSizeTokenMacro()
  • Method Details

    • setTool

      public void setTool(String tool)
    • setType

      public void setType(String type)
      Defines which value should be computed in the macro.
      Parameters:
      type - the type to show
    • acceptsMacroName

      public boolean acceptsMacroName(String macroName)
      Specified by:
      acceptsMacroName in class org.jenkinsci.plugins.tokenmacro.TokenMacro
    • evaluate

      public String evaluate(AbstractBuild<?,?> abstractBuild, TaskListener taskListener, String macroName)
      Specified by:
      evaluate in class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
    • evaluate

      public String evaluate(Run<?,?> run, FilePath workspace, TaskListener listener, String macroName)
      Overrides:
      evaluate in class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro