|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.analysis.core.MavenResultAction<T>
T - type of the build resultpublic abstract class MavenResultAction<T extends BuildResult>
Base class for Maven aggregated build reports.
| Constructor Summary | |
|---|---|
MavenResultAction(AbstractResultAction<T> delegate,
String defaultEncoding,
String pluginName)
Creates a new instance of MavenResultAction. |
|
| Method Summary | |
|---|---|
protected ParserResult |
aggregate(T existingResult,
T additionalResult)
Aggregates the results in a new instance of ParserResult. |
protected abstract T |
createResult(T existingResult,
T additionalResult)
Creates a new build result that contains the aggregated results. |
hudson.model.AbstractBuild<?,?> |
getBuild()
Returns the associated build of this action. |
hudson.model.HealthReport |
getBuildHealth()
Returns the health of this action. |
String |
getDefaultEncoding()
Returns the default encoding. |
String |
getDisplayName()
|
AbstractHealthDescriptor |
getHealthDescriptor()
Gets the associated health descriptor. |
String |
getIconFileName()
|
abstract Class<? extends MavenResultAction<T>> |
getIndividualActionType()
|
String |
getLargeImageName()
Returns the URL of the 48x48 image used in the build summary. |
String |
getLog()
Returns all logging statements of this action that couldn't be printed so far. |
hudson.model.AbstractBuild<?,?> |
getOwner()
Returns the associated build of this action. |
T |
getResult()
Returns the current result of this action. |
String |
getSmallImageName()
Returns the URL of the 24x24 image used in the build link. |
Object |
getTarget()
|
String |
getTooltip(int numberOfItems)
Returns the tooltip for the specified number of items. |
ToolTipProvider |
getToolTipProvider()
Returns the associated tool tip provider. |
String |
getUrlName()
|
boolean |
hasLargeImage()
Returns whether a large image is defined. |
boolean |
isSuccessful()
Returns whether this build is successful with respect to the HealthDescriptor of this action. |
void |
setResult(T additionalResult)
Sets the result for this build. |
void |
update(Map<hudson.maven.MavenModule,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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface hudson.maven.AggregatableAction |
|---|
createAggregatedAction |
| Methods inherited from interface hudson.maven.MavenAggregatedReport |
|---|
getProjectAction |
| Constructor Detail |
|---|
public MavenResultAction(AbstractResultAction<T> delegate,
String defaultEncoding,
String pluginName)
MavenResultAction.
delegate - result action for freestyle jobs that will do the main of the
workdefaultEncoding - the default encoding to be used when reading and parsing filespluginName - name of the plug-in| Method Detail |
|---|
public abstract Class<? extends MavenResultAction<T>> getIndividualActionType()
getIndividualActionType in interface hudson.maven.MavenAggregatedReportpublic String getSmallImageName()
protected abstract T createResult(@CheckForNull
T existingResult,
T additionalResult)
existingResult - an already existing result, might be null for the
first aggregationadditionalResult - the additional result to be aggregated with the existing
result
public void update(Map<hudson.maven.MavenModule,List<hudson.maven.MavenBuild>> moduleBuilds,
hudson.maven.MavenBuild newBuild)
update in interface hudson.maven.MavenAggregatedReportmoduleBuilds - Same as MavenModuleSet.getModuleBuilds() but provided
for convenience and efficiency.newBuild - Newly completed build.
protected ParserResult aggregate(@CheckForNull
T existingResult,
T additionalResult)
ParserResult.
existingResult - an already existing result, might be null for the
first aggregationadditionalResult - the additional result to be aggregated with the existing
result
public String getLog()
public String getDefaultEncoding()
public boolean hasLargeImage()
true if a large image is defined, false
otherwise. If no large image is defined, then the attribute
icon must to be provided in jelly tag summary.public String getLargeImageName()
public String getIconFileName()
getIconFileName in interface hudson.model.Actionpublic String getDisplayName()
getDisplayName in interface hudson.model.ActiongetDisplayName in interface hudson.model.ModelObjectpublic String getUrlName()
getUrlName in interface hudson.model.Actionpublic void setResult(T additionalResult)
ResultAction
setResult in interface ResultAction<T extends BuildResult>additionalResult - the result to setpublic T getResult()
ResultAction
getResult in interface ResultAction<T extends BuildResult>public hudson.model.AbstractBuild<?,?> getOwner()
public final hudson.model.HealthReport getBuildHealth()
public ToolTipProvider getToolTipProvider()
ResultAction
getToolTipProvider in interface ResultAction<T extends BuildResult>public final hudson.model.AbstractBuild<?,?> getBuild()
ResultAction
getBuild in interface ResultAction<T extends BuildResult>public final Object getTarget()
getTarget in interface org.kohsuke.stapler.StaplerProxypublic String getTooltip(int numberOfItems)
numberOfItems - the number of items to display the tooltip for
public boolean isSuccessful()
ResultActionHealthDescriptor of this action.
isSuccessful in interface ResultAction<T extends BuildResult>true if the build is successful, false
if the build has been set to Result.UNSTABLE or
Result.FAILURE by this action.public AbstractHealthDescriptor getHealthDescriptor()
ResultAction
getHealthDescriptor in interface ResultAction<T extends BuildResult>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||