Package hudson.tasks.junit
Class TestDataPublisher
- All Implemented Interfaces:
ExtensionPoint
,Describable<TestDataPublisher>
public abstract class TestDataPublisher
extends AbstractDescribableImpl<TestDataPublisher>
implements ExtensionPoint
Contributes
TestAction
s to test results.
This enables plugins to annotate test results and provide richer UI, such as letting users
claim test failures, allowing people to file bugs, or more generally, additional actions, views, etc.
To register your implementation, put Extension
on your descriptor implementation.
- Since:
- 1.320
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionall()
contributeTestData
(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener, TestResult testResult) Called after test results are collected by Jenkins, to create a resolver forTestAction
s.getTestData
(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener, TestResult testResult) Deprecated.Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
TestDataPublisher
public TestDataPublisher()
-
-
Method Details
-
contributeTestData
public TestResultAction.Data contributeTestData(Run<?, ?> run, @NonNull FilePath workspace, Launcher launcher, TaskListener listener, TestResult testResult) throws IOException, InterruptedExceptionCalled after test results are collected by Jenkins, to create a resolver forTestAction
s.- Parameters:
run
- Run contributing test data.workspace
- Run workspace.launcher
- Launcher.listener
- Listener.testResult
- Test result.- Returns:
- can be null to indicate that there's nothing to contribute for this test result.
- Throws:
IOException
- if an error occurs.InterruptedException
- if any thread interrupts this thread.- Since:
- 1.2-beta-1
-
getTestData
@Deprecated public TestResultAction.Data getTestData(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener, TestResult testResult) throws IOException, InterruptedExceptionDeprecated.- Throws:
IOException
InterruptedException
-
all
-