hudson.maven.reporters
Class MavenAggregatedArtifactRecord
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.TaskAction
hudson.maven.reporters.MavenAbstractArtifactRecord<MavenModuleSetBuild>
hudson.maven.reporters.MavenAggregatedArtifactRecord
- All Implemented Interfaces:
- MavenAggregatedReport, Action, BuildBadgeAction, ModelObject, SearchableModelObject, SearchItem
@ExportedBean
public class MavenAggregatedArtifactRecord
- extends MavenAbstractArtifactRecord<MavenModuleSetBuild>
- implements MavenAggregatedReport
Redeploy action for the entire MavenModuleSetBuild
.
- Author:
- Kohsuke Kawaguchi
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parent
public final MavenModuleSetBuild parent
MavenAggregatedArtifactRecord
public MavenAggregatedArtifactRecord(MavenModuleSetBuild build)
getBuild
public MavenModuleSetBuild getBuild()
- Description copied from class:
MavenAbstractArtifactRecord
- Gets the parent build object to which this record is registered.
- Specified by:
getBuild
in class MavenAbstractArtifactRecord<MavenModuleSetBuild>
update
public void update(Map<MavenModule,List<MavenBuild>> moduleBuilds,
MavenBuild newBuild)
- Description copied from interface:
MavenAggregatedReport
- Called whenever a new module build is completed, to update the
aggregated report. When multiple builds complete simultaneously,
Hudson serializes the execution of this method, so this method
needs not be concurrency-safe.
- Specified by:
update
in interface MavenAggregatedReport
- Parameters:
moduleBuilds
- Same as MavenModuleSet.getModuleBuilds() but provided for convenience and efficiency.newBuild
- Newly completed build.
getIndividualActionType
public Class<MavenArtifactRecord> getIndividualActionType()
- Description copied from interface:
MavenAggregatedReport
- Returns the implementation class of
AggregatableAction
that
produces this MavenAggregatedReport
. Hudson uses this method
to determine which AggregatableAction
is aggregated to
which MavenAggregatedReport
.
- Specified by:
getIndividualActionType
in interface MavenAggregatedReport
getProjectAction
public Action getProjectAction(MavenModuleSet moduleSet)
- Description copied from interface:
MavenAggregatedReport
- Equivalent of
BuildStep.getProjectAction(AbstractProject)
for MavenAggregatedReport
.
- Specified by:
getProjectAction
in interface MavenAggregatedReport
getModuleRecords
@Exported(inline=true)
public List<MavenArtifactRecord> getModuleRecords()
MavenArtifactRecord
s of every module build contributed to parent
.
deploy
public void deploy(hudson.maven.MavenEmbedder embedder,
org.apache.maven.artifact.repository.ArtifactRepository deploymentRepository,
TaskListener listener)
throws hudson.maven.MavenEmbedderException,
IOException,
org.codehaus.plexus.component.repository.exception.ComponentLookupException,
org.apache.maven.artifact.deployer.ArtifactDeploymentException
- Description copied from class:
MavenAbstractArtifactRecord
- Deploys the artifacts to the specified
ArtifactRepository
.
- Specified by:
deploy
in class MavenAbstractArtifactRecord<MavenModuleSetBuild>
- Parameters:
embedder
- This component hosts all the Maven components we need to do the work.deploymentRepository
- The remote repository to deploy to.listener
- The status and error goes to this listener.
- Throws:
hudson.maven.MavenEmbedderException
IOException
org.codehaus.plexus.component.repository.exception.ComponentLookupException
org.apache.maven.artifact.deployer.ArtifactDeploymentException
Copyright © 2004-2013. All Rights Reserved.