Class FailureCauseDisplayData
java.lang.Object
com.sonyericsson.jenkins.plugins.bfa.model.FailureCauseDisplayData
A class containing data to be displayed when presenting
FailureCausesBuildAction summary.
- Author:
- Jan-Olof Sivtoft
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A class containing links to be displayed for the project and the build. -
Constructor Summary
ConstructorDescriptionUse this constructor when the build is unknown.FailureCauseDisplayData
(Run build) Deprecated.FailureCauseDisplayData
(String parentUrl, String parentName, String buildUrl, String buildName) Use this constructor when the build is known. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
addDownstreamFailureCause
(FailureCauseDisplayData failureCauseDisplayData) Add a downstream builds display data.final List<FailureCauseDisplayData>
Getter for getting a list of downstream display data.final List<FoundFailureCause>
Getter for FoundFailureCauses.getLinks()
Getter for project and build links.boolean
isEmpty()
Indicates whether any failure causes where found (directly or downstream).final void
setFoundFailureCauses
(List<FoundFailureCause> foundFailureCauses) Set the FoundFailureCauses for corresponding action.
-
Constructor Details
-
FailureCauseDisplayData
public FailureCauseDisplayData()Use this constructor when the build is unknown. -
FailureCauseDisplayData
Deprecated.Use this constructor when the build is known.- Parameters:
build
- corresponding build.
-
FailureCauseDisplayData
public FailureCauseDisplayData(String parentUrl, String parentName, String buildUrl, String buildName) Use this constructor when the build is known.- Parameters:
parentUrl
- url of the parent job.parentName
- name of the parent job.buildUrl
- url of the build.buildName
- name of the build.
-
-
Method Details
-
setFoundFailureCauses
Set the FoundFailureCauses for corresponding action.- Parameters:
foundFailureCauses
- a list of FoundFailureCauses
-
getFoundFailureCauses
Getter for FoundFailureCauses.- Returns:
- a list of FoundFailureCauses
-
addDownstreamFailureCause
Add a downstream builds display data.- Parameters:
failureCauseDisplayData
- object containing a downstream display data
-
getDownstreamFailureCauses
Getter for getting a list of downstream display data.- Returns:
- a list of all downstream display data
-
getLinks
Getter for project and build links.- Returns:
- an object containing link info
-
isEmpty
public boolean isEmpty()Indicates whether any failure causes where found (directly or downstream).- Returns:
- true iff found failures and downstream failures lists are both empty
-