Class FailedTestsContent

  • All Implemented Interfaces:
    ExtensionPoint

    @Extension
    public class FailedTestsContent
    extends org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
    An EmailContent for failing tests. Only shows tests that have failed.
    Author:
    markltbaker
    • Field Detail

      • showStack

        public boolean showStack
      • showMessage

        public boolean showMessage
      • maxTests

        public int maxTests
      • onlyRegressions

        public boolean onlyRegressions
      • maxLength

        public int maxLength
      • outputFormat

        public String outputFormat
      • testNamePattern

        public String testNamePattern
    • Constructor Detail

      • FailedTestsContent

        public FailedTestsContent()
    • Method Detail

      • acceptsMacroName

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

        public String evaluate​(AbstractBuild<?,​?> build,
                               TaskListener listener,
                               String macroName)
                        throws org.jenkinsci.plugins.tokenmacro.MacroEvaluationException
        Specified by:
        evaluate in class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
        Throws:
        org.jenkinsci.plugins.tokenmacro.MacroEvaluationException
      • evaluate

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

        public String getLineBreak()
      • handlesHtmlEscapeInternally

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