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
FieldsFields inherited from class hudson.maven.reporters.MavenAbstractArtifactRecord
debug, records, REDEPLOYFields inherited from class hudson.model.TaskAction
log, workerThread -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeploy(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 ofAggregatableActionthat produces thisMavenAggregatedReport.MavenArtifactRecords of every module build contributed toparent.getProjectAction(MavenModuleSet moduleSet) Equivalent ofBuildStep.getProjectAction(AbstractProject)forMavenAggregatedReport.voidupdate(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, hasBadgeMethods inherited from class hudson.model.TaskAction
doClearError, doProgressiveHtml, doProgressiveLog, getLog, getSearchUrl, getWorkerThread, obtainLogMethods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError, sendError, sendError, sendErrorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Action
getDisplayName, getIconFileName, getUrlName
-
Field Details
-
parent
-
-
Constructor Details
-
MavenAggregatedArtifactRecord
-
-
Method Details
-
getBuild
Description copied from class:MavenAbstractArtifactRecordGets the parent build object to which this record is registered.- Specified by:
getBuildin classMavenAbstractArtifactRecord<MavenModuleSetBuild>
-
update
Description copied from interface:MavenAggregatedReportCalled 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:
updatein interfaceMavenAggregatedReport- Parameters:
moduleBuilds- Same asMavenModuleSetBuild.getModuleBuilds()but provided for convenience and efficiency.newBuild- Newly completed build.
-
getIndividualActionType
Description copied from interface:MavenAggregatedReportReturns the implementation class ofAggregatableActionthat produces thisMavenAggregatedReport. Hudson uses this method to determine whichAggregatableActionis aggregated to whichMavenAggregatedReport.- Specified by:
getIndividualActionTypein interfaceMavenAggregatedReport
-
getProjectAction
Description copied from interface:MavenAggregatedReportEquivalent ofBuildStep.getProjectAction(AbstractProject)forMavenAggregatedReport.- Specified by:
getProjectActionin interfaceMavenAggregatedReport
-
getModuleRecords
MavenArtifactRecords 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:MavenAbstractArtifactRecordDeploys the artifacts to the specifiedArtifactRepository.- Specified by:
deployin 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.MavenEmbedderExceptionIOExceptionorg.codehaus.plexus.component.repository.exception.ComponentLookupExceptionorg.apache.maven.artifact.deployer.ArtifactDeploymentException
-