|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.maven.MavenReporter
hudson.maven.reporters.MavenArtifactArchiver
public class MavenArtifactArchiver
Archives artifacts of the build.
Archive will be created in two places. One is inside the build directory, to be served from Jenkins. The other is to the local repository of the master, so that artifacts can be shared in maven builds happening in other slaves.
Nested Class Summary | |
---|---|
static class |
MavenArtifactArchiver.DescriptorImpl
|
Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
---|
ExtensionPoint.LegacyInstancesAreScopedToHudson |
Constructor Summary | |
---|---|
MavenArtifactArchiver()
|
Method Summary | |
---|---|
boolean |
postBuild(MavenBuildProxy build,
org.apache.maven.project.MavenProject pom,
BuildListener listener)
Called after a build of one maven2 module is completed. |
boolean |
preBuild(MavenBuildProxy build,
org.apache.maven.project.MavenProject pom,
BuildListener listener)
Called before the actual maven2 execution begins. |
boolean |
preExecute(MavenBuildProxy build,
org.apache.maven.project.MavenProject pom,
MojoInfo mojo,
BuildListener listener)
Called before execution of a single mojo. |
Methods inherited from class hudson.maven.MavenReporter |
---|
end, enterModule, getAggregatedProjectAction, getDescriptor, getProjectAction, getProjectActions, leaveModule, postExecute, reportGenerated |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MavenArtifactArchiver()
Method Detail |
---|
public boolean preBuild(MavenBuildProxy build, org.apache.maven.project.MavenProject pom, BuildListener listener) throws InterruptedException, IOException
MavenReporter
preBuild
in class MavenReporter
pom
- 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 preExecute(MavenBuildProxy build, org.apache.maven.project.MavenProject pom, MojoInfo mojo, BuildListener listener) throws InterruptedException, IOException
MavenReporter
When this method is invoked, MojoInfo.mojo
is fully injected with its configuration values.
preExecute
in class MavenReporter
MavenReporter.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 postBuild(MavenBuildProxy build, org.apache.maven.project.MavenProject pom, BuildListener listener) throws InterruptedException, IOException
MavenReporter
Note that at this point the build result is still not determined.
postBuild
in class MavenReporter
MavenReporter.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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |