Class FailedTestsContent
- java.lang.Object
-
- org.jenkinsci.plugins.tokenmacro.TokenMacro
-
- org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
-
- hudson.plugins.emailext.plugins.content.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
-
-
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 Modifier and Type Field Description static String
MACRO_NAME
int
maxLength
int
maxTests
boolean
onlyRegressions
String
outputFormat
boolean
showMessage
boolean
showStack
String
testNamePattern
-
Constructor Summary
Constructors Constructor Description FailedTestsContent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
acceptsMacroName(String macroName)
String
evaluate(AbstractBuild<?,?> build, TaskListener listener, String macroName)
String
evaluate(Run<?,?> run, FilePath workspace, TaskListener listener, String macroName)
String
getLineBreak()
boolean
handlesHtmlEscapeInternally()
-
Methods inherited from class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
evaluate, evaluate, hasNestedContent
-
-
-
-
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
-
MACRO_NAME
public static final String MACRO_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
acceptsMacroName
public boolean acceptsMacroName(String macroName)
- Specified by:
acceptsMacroName
in classorg.jenkinsci.plugins.tokenmacro.TokenMacro
-
evaluate
public String evaluate(AbstractBuild<?,?> build, TaskListener listener, String macroName) throws org.jenkinsci.plugins.tokenmacro.MacroEvaluationException
- Specified by:
evaluate
in classorg.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 classorg.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
- Throws:
org.jenkinsci.plugins.tokenmacro.MacroEvaluationException
-
getLineBreak
public String getLineBreak()
-
handlesHtmlEscapeInternally
public boolean handlesHtmlEscapeInternally()
- Overrides:
handlesHtmlEscapeInternally
in classorg.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
-
-