Package hudson.tasks.test
Class DefaultTestResultParserImpl
- java.lang.Object
-
- hudson.tasks.test.TestResultParser
-
- hudson.tasks.test.DefaultTestResultParserImpl
-
- All Implemented Interfaces:
Serializable
@Deprecated public abstract class DefaultTestResultParserImpl extends TestResultParser implements Serializable
Deprecated.Unused, unusable.Default partial implementation ofTestResultParser
that handles GLOB dereferencing and other checks for user errors, such as misconfigured GLOBs, up-to-date checks on test reports.The instance of the parser will be serialized to the node that performed the build and the parsing will be done remotely on that agent.
- Since:
- 1.343
- Author:
- Kohsuke Kawaguchi
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
IGNORE_TIMESTAMP_CHECK
Deprecated.
-
Constructor Summary
Constructors Constructor Description DefaultTestResultParserImpl()
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected abstract TestResult
parse(List<File> reportFiles, Launcher launcher, TaskListener listener)
Deprecated.This method is executed on the agent that has the report files to parse test reports and buildsTestResult
.TestResult
parseResult(String testResultLocations, Run<?,?> build, FilePath workspace, Launcher launcher, TaskListener listener)
Deprecated.-
Methods inherited from class hudson.tasks.test.TestResultParser
all, getDisplayName, getTestResultLocationMessage, parse, parseResult
-
-
-
-
Method Detail
-
parse
protected abstract TestResult parse(List<File> reportFiles, Launcher launcher, TaskListener listener) throws InterruptedException, IOException
Deprecated.This method is executed on the agent that has the report files to parse test reports and buildsTestResult
.- Parameters:
reportFiles
- List of files to be parsed. Never be empty nor null.launcher
- Can be used to fork processes on the machine where the build is running. Never null.listener
- Use this to report progress and other problems. Never null.- Throws:
InterruptedException
- If the user cancels the build, it will be received as a thread interruption. Do not catch it, and instead just forward that through the call stack.IOException
- If you don't care about handling exceptions gracefully, you can just throw IOException and let the default exception handling in Hudson takes care of it.AbortException
- If you encounter an error that you handled gracefully, throw this exception and Hudson will not show a stack trace.
-
parseResult
public TestResult parseResult(String testResultLocations, Run<?,?> build, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException
Deprecated.- Overrides:
parseResult
in classTestResultParser
- Throws:
InterruptedException
IOException
-
-