Package hudson.maven.reporters
Class ReportCollector
java.lang.Object
hudson.maven.MavenReporter
hudson.maven.reporters.ReportCollector
- All Implemented Interfaces:
ExtensionPoint,MavenProjectActionBuilder,Describable<MavenReporter>,Serializable
Watches out for executions of
MavenReport mojos and record its output.- Author:
- Kohsuke Kawaguchi
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanleaveModule(MavenBuildProxy build, org.apache.maven.project.MavenProject pom, BuildListener listener) Called when the build leaves the currentMavenProject.booleanpostExecute(MavenBuildProxy build, org.apache.maven.project.MavenProject pom, MojoInfo mojo, BuildListener listener, Throwable error) Called after execution of a single mojo.Methods inherited from class hudson.maven.MavenReporter
end, enterModule, getAggregatedProjectAction, getProjectAction, getProjectActions, postBuild, preBuild, preExecute, reportGenerated
-
Constructor Details
-
ReportCollector
public ReportCollector()
-
-
Method Details
-
postExecute
public boolean postExecute(MavenBuildProxy build, org.apache.maven.project.MavenProject pom, MojoInfo mojo, BuildListener listener, Throwable error) throws InterruptedException, IOException Description copied from class:MavenReporterCalled after execution of a single mojo.See
MavenReporter.preExecute(hudson.maven.MavenBuildProxy, org.apache.maven.project.MavenProject, hudson.maven.MojoInfo, hudson.model.BuildListener)for the contract.- Overrides:
postExecutein classMavenReportererror- If mojo execution failed withMojoFailureExceptionorMojoExecutionException, this method is still invoked with those error objects. If mojo executed successfully, this parameter is null.- Throws:
InterruptedExceptionIOException
-
leaveModule
public boolean leaveModule(MavenBuildProxy build, org.apache.maven.project.MavenProject pom, BuildListener listener) throws InterruptedException, IOException Description copied from class:MavenReporterCalled when the build leaves the currentMavenProject. -
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<MavenReporter>- Overrides:
getDescriptorin classMavenReporter
-