hudson.plugins.checkstyle
Class MavenCheckStyleResultAction
java.lang.Object
hudson.plugins.checkstyle.util.AbstractResultAction<CheckStyleResult>
hudson.plugins.checkstyle.CheckStyleResultAction
hudson.plugins.checkstyle.MavenCheckStyleResultAction
- All Implemented Interfaces:
- hudson.maven.AggregatableAction, hudson.maven.MavenAggregatedReport, hudson.model.Action, hudson.model.HealthReportingAction, hudson.model.ModelObject, ResultAction<CheckStyleResult>, ToolTipProvider, java.io.Serializable, org.kohsuke.stapler.StaplerProxy
public class MavenCheckStyleResultAction
- extends CheckStyleResultAction
- implements hudson.maven.AggregatableAction, hudson.maven.MavenAggregatedReport
A CheckStyleResultAction for native maven jobs. This action
additionally provides result aggregation for sub-modules and for the main
project.
- Author:
- Ulli Hafner
- See Also:
- Serialized Form
|
Method Summary |
hudson.maven.MavenAggregatedReport |
createAggregatedAction(hudson.maven.MavenModuleSetBuild build,
java.util.Map<hudson.maven.MavenModule,java.util.List<hudson.maven.MavenBuild>> moduleBuilds)
|
java.lang.Class<? extends hudson.maven.AggregatableAction> |
getIndividualActionType()
|
hudson.model.Action |
getProjectAction(hudson.maven.MavenModuleSet moduleSet)
|
void |
update(java.util.Map<hudson.maven.MavenModule,java.util.List<hudson.maven.MavenBuild>> moduleBuilds,
hudson.maven.MavenBuild newBuild)
Called whenever a new module build is completed, to update the
aggregated report. |
| Methods inherited from class hudson.plugins.checkstyle.util.AbstractResultAction |
buildDataSet, doGraph, doGraphMap, getBuildHealth, getHealthReportBuilder, getIconFileName, getOwner, getPreviousBuild, getResult, getTarget, getUrlName, hasPreviousResultAction, setResult |
| 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 |
| Methods inherited from interface hudson.model.Action |
getDisplayName, getIconFileName, getUrlName |
MavenCheckStyleResultAction
public MavenCheckStyleResultAction(hudson.model.AbstractBuild<?,?> owner,
HealthReportBuilder healthReportBuilder,
java.lang.String height)
- Creates a new instance of
MavenCheckStyleResultAction.
- Parameters:
owner - the associated build of this actionhealthReportBuilder - health builder to useheight - the height of the trend graph
MavenCheckStyleResultAction
public MavenCheckStyleResultAction(hudson.model.AbstractBuild<?,?> owner,
HealthReportBuilder healthReportBuilder,
java.lang.String height,
CheckStyleResult result)
- Creates a new instance of
MavenCheckStyleResultAction.
- Parameters:
owner - the associated build of this actionhealthReportBuilder - health builder to useheight - the height of the trend graphresult - the result in this build
createAggregatedAction
public hudson.maven.MavenAggregatedReport createAggregatedAction(hudson.maven.MavenModuleSetBuild build,
java.util.Map<hudson.maven.MavenModule,java.util.List<hudson.maven.MavenBuild>> moduleBuilds)
-
- Specified by:
createAggregatedAction in interface hudson.maven.AggregatableAction
getProjectAction
public hudson.model.Action getProjectAction(hudson.maven.MavenModuleSet moduleSet)
-
- Specified by:
getProjectAction in interface hudson.maven.MavenAggregatedReport
getIndividualActionType
public java.lang.Class<? extends hudson.maven.AggregatableAction> getIndividualActionType()
-
- Specified by:
getIndividualActionType in interface hudson.maven.MavenAggregatedReport
update
public void update(java.util.Map<hudson.maven.MavenModule,java.util.List<hudson.maven.MavenBuild>> moduleBuilds,
hudson.maven.MavenBuild newBuild)
- 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 hudson.maven.MavenAggregatedReport
- Parameters:
moduleBuilds - Same as MavenModuleSet.getModuleBuilds() but provided for convenience and efficiency.newBuild - Newly completed build.
Copyright © 2008. All Rights Reserved.