public class MavenFingerprinter extends MavenReporter
| Modifier and Type | Class and Description |
|---|---|
static class |
MavenFingerprinter.DescriptorImpl |
| Constructor and Description |
|---|
MavenFingerprinter() |
| Modifier and Type | Method and Description |
|---|---|
static void |
aggregate(MavenModuleSetBuild mmsb)
Creates
Fingerprinter.FingerprintAction for MavenModuleSetBuild
by aggregating all fingerprints from module builds. |
boolean |
postBuild(MavenBuildProxy build,
org.apache.maven.project.MavenProject pom,
hudson.model.BuildListener listener)
Sends the collected fingerprints over to the master and record them.
|
boolean |
postExecute(MavenBuildProxy build,
org.apache.maven.project.MavenProject pom,
MojoInfo mojo,
hudson.model.BuildListener listener,
Throwable error)
Mojos perform different dependency resolution, so we need to check this for each mojo.
|
boolean |
preBuild(MavenBuildProxy build,
org.apache.maven.project.MavenProject pom,
hudson.model.BuildListener listener)
Called before the actual maven2 execution begins.
|
end, enterModule, getAggregatedProjectAction, getDescriptor, getProjectAction, getProjectActions, leaveModule, preExecute, reportGeneratedpublic boolean preBuild(MavenBuildProxy build, org.apache.maven.project.MavenProject pom, hudson.model.BuildListener listener) throws InterruptedException, IOException
MavenReporterpreBuild in class MavenReporterpom - Represents the POM to be executed.InterruptedException - If the build is interrupted by the user (in an attempt to abort the build.)
Normally the MavenReporter implementations may simply forward the exception
it got from its lower-level functions.IOException - If the implementation wants to abort the processing when an IOException
happens, it can simply propagate the exception to the caller. This will cause
the build to fail, with the default error message.
Implementations are encouraged to catch IOException on its own to
provide a better error message, if it can do so, so that users have better
understanding on why it failed.public boolean postExecute(MavenBuildProxy build, org.apache.maven.project.MavenProject pom, MojoInfo mojo, hudson.model.BuildListener listener, Throwable error) throws InterruptedException, IOException
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 postBuild(MavenBuildProxy build, org.apache.maven.project.MavenProject pom, hudson.model.BuildListener listener) throws InterruptedException, IOException
postBuild 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 static void aggregate(MavenModuleSetBuild mmsb) throws IOException
Fingerprinter.FingerprintAction for MavenModuleSetBuild
by aggregating all fingerprints from module builds.IOExceptionCopyright © 2016–2017. All rights reserved.