hudson.maven.reporters
Class MavenAggregatedArtifactRecord

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.model.TaskAction
          extended by hudson.maven.reporters.MavenAbstractArtifactRecord<MavenModuleSetBuild>
              extended by 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
 MavenModuleSetBuild parent
           
 
Fields inherited from class hudson.maven.reporters.MavenAbstractArtifactRecord
debug, records, REDEPLOY
 
Fields inherited from class hudson.model.TaskAction
log, workerThread
 
Constructor Summary
MavenAggregatedArtifactRecord(MavenModuleSetBuild build)
           
 
Method Summary
 void deploy(hudson.maven.MavenEmbedder embedder, org.apache.maven.artifact.repository.ArtifactRepository deploymentRepository, TaskListener listener)
          Deploys the artifacts to the specified ArtifactRepository.
 MavenModuleSetBuild getBuild()
          Gets the parent build object to which this record is registered.
 Class<MavenArtifactRecord> getIndividualActionType()
          Returns the implementation class of AggregatableAction that produces this MavenAggregatedReport.
 List<MavenArtifactRecord> getModuleRecords()
          MavenArtifactRecords of every module build contributed to parent.
 Action getProjectAction(MavenModuleSet moduleSet)
          Equivalent of BuildStep.getProjectAction(AbstractProject) for MavenAggregatedReport.
 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 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()
MavenArtifactRecords 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.