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 entire
MavenModuleSetBuild
.- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.maven.reporters.MavenAbstractArtifactRecord
MavenAbstractArtifactRecord.Record
-
Field Summary
Fields inherited from class hudson.maven.reporters.MavenAbstractArtifactRecord
debug, records, REDEPLOY
Fields inherited from class hudson.model.TaskAction
log, workerThread
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deploy
(hudson.maven.MavenEmbedder embedder, org.apache.maven.artifact.repository.ArtifactRepository deploymentRepository, TaskListener listener) Deploys the artifacts to the specifiedArtifactRepository
.getBuild()
Gets the parent build object to which this record is registered.Returns the implementation class ofAggregatableAction
that produces thisMavenAggregatedReport
.MavenArtifactRecord
s of every module build contributed toparent
.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 Details
-
parent
-
-
Constructor Details
-
MavenAggregatedArtifactRecord
-
-
Method Details
-
getBuild
Description copied from class:MavenAbstractArtifactRecord
Gets the parent build object to which this record is registered.- Specified by:
getBuild
in classMavenAbstractArtifactRecord<MavenModuleSetBuild>
-
update
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
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
Description copied from interface:MavenAggregatedReport
Equivalent ofBuildStep.getProjectAction(AbstractProject)
forMavenAggregatedReport
.- Specified by:
getProjectAction
in interfaceMavenAggregatedReport
-
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
-