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 Summary
ConstructorDescriptionFailureCauseMatrixBuildAction
(hudson.matrix.MatrixBuild build, List<hudson.matrix.MatrixRun> runs) Standard constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Converts from the use of the buggyruns
to 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.Gets the image url for the badge page.static FailureCauseDisplayData
getFailureCauseDisplayData
(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.Gets the image url for the summary page.List<hudson.matrix.MatrixRun>
Gets all the matrix runs that have the failure cause build action.boolean
Check to see ifconvertOldData()
is needed.Signal that this object is de-serialized.
-
Constructor Details
-
FailureCauseMatrixBuildAction
public 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:
getIconFileName
in interfaceAction
-
getDisplayName
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
- Specified by:
getUrlName
in interfaceAction
-
getActionForBuild
Convenience method for getting the action for a specific run.- Parameters:
run
- the run to get the action for.- Returns:
- the FailureCauseBuildAction.
-
getRunsWithAction
Gets all the matrix runs that have the failure cause build action.- Returns:
- the runs with the action.
-
getFirstFailureCause
Finds the first run with the first identified cause. Null if there are none.- Returns:
- the first cause found.
-
getImageUrl
Gets the image url for the summary page.- Returns:
- the image url.
-
getBadgeImageUrl
Gets the image url for the badge page.- Returns:
- the image url.
-
getFoundFailureCauses
Gets the failure causes for a specific matrix run.- Parameters:
run
- the run to find failure causes for.- Returns:
- the failure causes of the run.
-
getFailureCauseDisplayData
Gets the failure causes for a specific matrix run.- Parameters:
run
- the run to find failure causes for.- Returns:
- the failure causes of the run.
-
readResolve
Signal that this object is de-serialized. Will start by checking ifruns
should be converted, otherwise check ifrunIds
should be converted toruns
.- Returns:
- this object.
-
needsConvertOld
public boolean needsConvertOld()Check to see ifconvertOldData()
is needed.- Returns:
- true if so.
-
convertOldData
public void convertOldData()Converts from the use of the buggyruns
to userunIds
. Only does the conversion if needed. -
findUpStreamName
Finds the name of the matrix project that this action probably belongs to.- Returns:
- the name of the project or null if runs are bad.
-