public abstract class TestDataPublisher extends AbstractDescribableImpl<TestDataPublisher> implements ExtensionPoint
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.
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
TestDataPublisher() |
Modifier and Type | Method and Description |
---|---|
static DescriptorExtensionList<TestDataPublisher,Descriptor<TestDataPublisher>> |
all() |
TestResultAction.Data |
contributeTestData(Run<?,?> run,
FilePath workspace,
Launcher launcher,
TaskListener listener,
TestResult testResult)
Called after test results are collected by Jenkins, to create a resolver for
TestAction s. |
TestResultAction.Data |
getTestData(AbstractBuild<?,?> build,
Launcher launcher,
BuildListener listener,
TestResult testResult)
Deprecated.
|
getDescriptor
public TestResultAction.Data contributeTestData(Run<?,?> run, @Nonnull FilePath workspace, Launcher launcher, TaskListener listener, TestResult testResult) throws IOException, InterruptedException
TestAction
s.run
- Run contributing test data.workspace
- Run workspace.launcher
- Launcher.listener
- Listener.testResult
- Test result.IOException
- if an error occurs.InterruptedException
- if any thread interrupts this thread.@Deprecated public TestResultAction.Data getTestData(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener, TestResult testResult) throws IOException, InterruptedException
IOException
InterruptedException
public static DescriptorExtensionList<TestDataPublisher,Descriptor<TestDataPublisher>> all()
Copyright © 2016–2020. All rights reserved.