Package 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 entireMavenModuleSetBuild
.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.maven.reporters.MavenAbstractArtifactRecord
MavenAbstractArtifactRecord.Record
-
-
Field Summary
Fields Modifier and Type Field Description MavenModuleSetBuild
parent
-
Fields inherited from class hudson.maven.reporters.MavenAbstractArtifactRecord
debug, records, REDEPLOY
-
Fields inherited from class hudson.model.TaskAction
log, workerThread
-
-
Constructor Summary
Constructors Constructor Description MavenAggregatedArtifactRecord(MavenModuleSetBuild build)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deploy(hudson.maven.MavenEmbedder embedder, org.apache.maven.artifact.repository.ArtifactRepository deploymentRepository, TaskListener listener)
Deploys the artifacts to the specifiedArtifactRepository
.MavenModuleSetBuild
getBuild()
Gets the parent build object to which this record is registered.Class<MavenArtifactRecord>
getIndividualActionType()
Returns the implementation class ofAggregatableAction
that produces thisMavenAggregatedReport
.List<MavenArtifactRecord>
getModuleRecords()
MavenArtifactRecord
s of every module build contributed toparent
.Action
getProjectAction(MavenModuleSet moduleSet)
Equivalent ofBuildStep.getProjectAction(AbstractProject)
forMavenAggregatedReport
.void
update(Map<MavenModule,List<MavenBuild>> moduleBuilds, MavenBuild newBuild)
Called whenever a new module build is completed, to update the aggregated report.-
Methods inherited from class hudson.maven.reporters.MavenAbstractArtifactRecord
doRedeploy, getACL, getApi, getDisplayName, getDynamic, getHistoryWidget, getIconFileName, getPermission, getUrlName, hasBadge
-
Methods inherited from class hudson.model.TaskAction
doClearError, doProgressiveHtml, doProgressiveLog, getLog, getSearchUrl, getWorkerThread, obtainLog
-
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.model.Action
getDisplayName, getIconFileName, getUrlName
-
-
-
-
Field Detail
-
parent
public final MavenModuleSetBuild parent
-
-
Constructor Detail
-
MavenAggregatedArtifactRecord
public MavenAggregatedArtifactRecord(MavenModuleSetBuild build)
-
-
Method Detail
-
getBuild
public MavenModuleSetBuild getBuild()
Description copied from class:MavenAbstractArtifactRecord
Gets the parent build object to which this record is registered.- Specified by:
getBuild
in classMavenAbstractArtifactRecord<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 interfaceMavenAggregatedReport
- Parameters:
moduleBuilds
- Same asMavenModuleSetBuild.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 ofAggregatableAction
that produces thisMavenAggregatedReport
. Hudson uses this method to determine whichAggregatableAction
is aggregated to whichMavenAggregatedReport
.- Specified by:
getIndividualActionType
in interfaceMavenAggregatedReport
-
getProjectAction
public Action getProjectAction(MavenModuleSet moduleSet)
Description copied from interface:MavenAggregatedReport
Equivalent ofBuildStep.getProjectAction(AbstractProject)
forMavenAggregatedReport
.- Specified by:
getProjectAction
in interfaceMavenAggregatedReport
-
getModuleRecords
@Exported(inline=true) public List<MavenArtifactRecord> getModuleRecords()
MavenArtifactRecord
s of every module build contributed toparent
.
-
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 specifiedArtifactRepository
.- Specified by:
deploy
in classMavenAbstractArtifactRecord<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
-
-