Class FailureCauseMatrixBuildAction
java.lang.Object
com.sonyericsson.jenkins.plugins.bfa.model.FailureCauseMatrixBuildAction
- All Implemented Interfaces:
- Action,- BuildBadgeAction,- ModelObject
Build action for the aggregated result of failure causes.
- Author:
- Tomas Westling <thomas.westling@sonyericsson.com>
- 
Constructor SummaryConstructorsConstructorDescriptionFailureCauseMatrixBuildAction(hudson.matrix.MatrixBuild build, List<hudson.matrix.MatrixRun> runs) Standard constructor.
- 
Method SummaryModifier and TypeMethodDescriptionvoidConverts from the use of the buggyrunsto userunIds.Finds the name of the matrix project that this action probably belongs to.getActionForBuild(hudson.matrix.MatrixRun run) Convenience method for getting the action for a specific run.Deprecated.plugin now uses icons.static FailureCauseDisplayDatagetFailureCauseDisplayData(hudson.matrix.MatrixRun run) Gets the failure causes for a specific matrix run.Finds the first run with the first identified cause.getFoundFailureCauses(hudson.matrix.MatrixRun run) Gets the failure causes for a specific matrix run.Deprecated.plugin now uses icons.List<hudson.matrix.MatrixRun>Gets all the matrix runs that have the failure cause build action.booleanCheck to see ifconvertOldData()is needed.Signal that this object is de-serialized.
- 
Constructor Details- 
FailureCauseMatrixBuildActionpublic FailureCauseMatrixBuildAction(hudson.matrix.MatrixBuild build, List<hudson.matrix.MatrixRun> runs) Standard constructor.- Parameters:
- build- the build where this action is placed.
- runs- the list of MatrixRuns for this action.
 
 
- 
- 
Method Details- 
getIconFileName- Specified by:
- getIconFileNamein interface- Action
 
- 
getDisplayName- Specified by:
- getDisplayNamein interface- Action
- Specified by:
- getDisplayNamein interface- ModelObject
 
- 
getUrlName- Specified by:
- getUrlNamein interface- Action
 
- 
getActionForBuildConvenience method for getting the action for a specific run.- Parameters:
- run- the run to get the action for.
- Returns:
- the FailureCauseBuildAction.
 
- 
getRunsWithActionGets all the matrix runs that have the failure cause build action.- Returns:
- the runs with the action.
 
- 
getFirstFailureCauseFinds the first run with the first identified cause. Null if there are none.- Returns:
- the first cause found.
 
- 
getImageUrlDeprecated.plugin now uses icons.Gets the image url for the summary page.- Returns:
- the image url.
 
- 
getBadgeImageUrlDeprecated.plugin now uses icons.Gets the image url for the badge page.- Returns:
- the image url.
 
- 
getFoundFailureCausesGets the failure causes for a specific matrix run.- Parameters:
- run- the run to find failure causes for.
- Returns:
- the failure causes of the run.
 
- 
getFailureCauseDisplayDataGets the failure causes for a specific matrix run.- Parameters:
- run- the run to find failure causes for.
- Returns:
- the failure causes of the run.
 
- 
readResolveSignal that this object is de-serialized. Will start by checking ifrunsshould be converted, otherwise check ifrunIdsshould be converted toruns.- Returns:
- this object.
 
- 
needsConvertOldpublic boolean needsConvertOld()Check to see ifconvertOldData()is needed.- Returns:
- true if so.
 
- 
convertOldDatapublic void convertOldData()Converts from the use of the buggyrunsto userunIds. Only does the conversion if needed.
- 
findUpStreamNameFinds the name of the matrix project that this action probably belongs to.- Returns:
- the name of the project or null if runs are bad.
 
 
-