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 classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
leaveModule
(MavenBuildProxy build, org.apache.maven.project.MavenProject pom, BuildListener listener) Called when the build leaves the currentMavenProject
.boolean
postExecute
(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:MavenReporter
Called 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:
postExecute
in classMavenReporter
error
- If mojo execution failed withMojoFailureException
orMojoExecutionException
, this method is still invoked with those error objects. If mojo executed successfully, this parameter is null.- Throws:
InterruptedException
IOException
-
leaveModule
public boolean leaveModule(MavenBuildProxy build, org.apache.maven.project.MavenProject pom, BuildListener listener) throws InterruptedException, IOException Description copied from class:MavenReporter
Called when the build leaves the currentMavenProject
. -
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<MavenReporter>
- Overrides:
getDescriptor
in classMavenReporter
-