Class 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
    • Constructor Detail

      • IssuesSizeTokenMacro

        public IssuesSizeTokenMacro()
    • Method Detail

      • setTool

        public void setTool​(String tool)
      • setType

        public void setType​(String type)
        Defines which value should be shown in the column.
        Parameters:
        type - the type of the values 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