Class JUnitFlakyResultArchiver
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Recorder
com.google.jenkins.flakyTestHandler.plugin.JUnitFlakyResultArchiver
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
,Serializable
Record flaky information to get flaky stats for all the tests
- Author:
- Qingzhou Luo
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImpl
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProjectActions
(AbstractProject<?, ?> project) Get the action to display aggregated flaky information for all the tests for the given projectboolean
perform
(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) Perform collecting of flaky stats for the current runMethods inherited from class hudson.tasks.Recorder
getDescriptor
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, perform, prebuild
-
Constructor Details
-
JUnitFlakyResultArchiver
@DataBoundConstructor public JUnitFlakyResultArchiver()
-
-
Method Details
-
getRequiredMonitorService
- Specified by:
getRequiredMonitorService
in interfaceBuildStep
-
getProjectActions
Get the action to display aggregated flaky information for all the tests for the given project- Specified by:
getProjectActions
in interfaceBuildStep
- Overrides:
getProjectActions
in classBuildStepCompatibilityLayer
- Parameters:
project
- the project that is running- Returns:
- the action to display aggregated flaky information for all the tests
-
perform
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOExceptionPerform collecting of flaky stats for the current run- Specified by:
perform
in interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
- Parameters:
build
- this buildlauncher
- launcher of this buildlistener
- listener of this build- Returns:
- true so the build can continue
- Throws:
InterruptedException
IOException
-