Package hudson.tasks.junit
Class TestDataPublisher
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<TestDataPublisher>
-
- hudson.tasks.junit.TestDataPublisher
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<TestDataPublisher>
public abstract class TestDataPublisher extends AbstractDescribableImpl<TestDataPublisher> implements ExtensionPoint
ContributesTestAction
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
Constructors Constructor Description TestDataPublisher()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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 forTestAction
s.TestResultAction.Data
getTestData(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener, TestResult testResult)
Deprecated.-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Method Detail
-
contributeTestData
public TestResultAction.Data contributeTestData(Run<?,?> run, @NonNull FilePath workspace, Launcher launcher, TaskListener listener, TestResult testResult) throws IOException, InterruptedException
Called 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, InterruptedException
Deprecated.- Throws:
IOException
InterruptedException
-
all
public static DescriptorExtensionList<TestDataPublisher,Descriptor<TestDataPublisher>> all()
-
-