public class SurefireArchiver extends TestFailureDetector
| Modifier and Type | Class and Description |
|---|---|
static class |
SurefireArchiver.DescriptorImpl |
| Constructor and Description |
|---|
SurefireArchiver() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
end(MavenBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
Called after the maven execution finished and the result is determined.
|
static void |
fixUp(List<MavenProjectActionBuilder> builders)
Up to 1.372, there was a bug that causes Hudson to persist
SurefireArchiver with the entire test result
in it. |
boolean |
hasTestFailures()
Have any test failures been detected?
|
boolean |
postExecute(MavenBuildProxy build,
org.apache.maven.project.MavenProject pom,
MojoInfo mojo,
hudson.model.BuildListener listener,
Throwable error)
Called after execution of a single mojo.
|
boolean |
preExecute(MavenBuildProxy build,
org.apache.maven.project.MavenProject pom,
MojoInfo mojo,
hudson.model.BuildListener listener)
Called before execution of a single mojo.
|
protected Object |
readResolve() |
enterModule, getAggregatedProjectAction, getDescriptor, getProjectAction, getProjectActions, leaveModule, postBuild, preBuild, reportGeneratedpublic boolean hasTestFailures()
TestFailureDetectorhasTestFailures in class TestFailureDetectortrue if there are test failurespublic boolean preExecute(MavenBuildProxy build, org.apache.maven.project.MavenProject pom, MojoInfo mojo, hudson.model.BuildListener listener) throws InterruptedException, IOException
MavenReporter
When this method is invoked, MojoInfo.mojo is fully injected with its configuration values.
preExecute in class MavenReporterMavenReporter.preBuild(hudson.maven.MavenBuildProxy, org.apache.maven.project.MavenProject, hudson.model.BuildListener)InterruptedException - See MavenReporter.preBuild(hudson.maven.MavenBuildProxy, org.apache.maven.project.MavenProject, hudson.model.BuildListener)IOException - See MavenReporter.preBuild(hudson.maven.MavenBuildProxy, org.apache.maven.project.MavenProject, hudson.model.BuildListener)public boolean postExecute(MavenBuildProxy build, org.apache.maven.project.MavenProject pom, MojoInfo mojo, hudson.model.BuildListener listener, Throwable error) throws InterruptedException, IOException
MavenReporter
See MavenReporter.preExecute(hudson.maven.MavenBuildProxy, org.apache.maven.project.MavenProject, hudson.maven.MojoInfo, hudson.model.BuildListener) for the contract.
postExecute in class MavenReportererror - If mojo execution failed with MojoFailureException or
MojoExecutionException, this method is still invoked
with those error objects.
If mojo executed successfully, this parameter is null.InterruptedExceptionIOExceptionpublic boolean end(MavenBuild build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws InterruptedException, IOException
MavenReporter
This method fires after MavenReporter.postBuild(MavenBuildProxy, MavenProject, BuildListener).
Works like BuildStepCompatibilityLayer.perform(Build, Launcher, BuildListener).
end in class MavenReporterInterruptedExceptionIOExceptionpublic static void fixUp(List<MavenProjectActionBuilder> builders)
SurefireArchiver with the entire test result
in it. If we are loading those, fix it up in memory to reduce the memory footprint.
It'd be nice we can save the record to remove problematic portion, but that might have
additional side effect.protected Object readResolve()
Copyright © 2016–2017. All rights reserved.