Class Token

  • All Implemented Interfaces:
    ExtensionPoint

    @Extension(optional=true)
    public class Token
    extends org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
    The Build Failure Analyzer token for TokenMacro consumers.
    Author:
    K. R. Walker <krwalker@stellarscience.com>
    • Constructor Detail

      • Token

        public Token()
    • Method Detail

      • setIncludeIndications

        public void setIncludeIndications​(boolean includeIndications)
        Parameters:
        includeIndications - When true, the indication numbers and links into the console log are included in the token replacement text.
      • setUseHtmlFormat

        public void setUseHtmlFormat​(boolean useHtmlFormat)
        Parameters:
        useHtmlFormat - When true, the replacement text will be an HTML snippet.
      • setIncludeTitle

        public void setIncludeTitle​(boolean includeTitle)
        Parameters:
        includeTitle - When true, the title will appear in the token replacement text.
      • setWrapWidth

        public void setWrapWidth​(int wrapWidth)
        Parameters:
        wrapWidth - Wrap long lines at this width. If wrapWidth is 0, the text isn't wrapped. Only applies if useHtmlFormat == false.
      • setNoFailureText

        public void setNoFailureText​(String noFailureText)
        Parameters:
        noFailureText - Text to return when no failure cause is present.
      • acceptsMacroName

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

        public boolean handlesHtmlEscapeInternally()
        Overrides:
        handlesHtmlEscapeInternally in class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro