Class FailureCauseDisplayData

java.lang.Object
com.sonyericsson.jenkins.plugins.bfa.model.FailureCauseDisplayData

@ExportedBean public class FailureCauseDisplayData extends Object
A class containing data to be displayed when presenting FailureCausesBuildAction summary.
Author:
Jan-Olof Sivtoft
  • Constructor Details

    • FailureCauseDisplayData

      public FailureCauseDisplayData()
      Use this constructor when the build is unknown.
    • FailureCauseDisplayData

      @Deprecated public FailureCauseDisplayData(Run build)
      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

      public final void setFoundFailureCauses(List<FoundFailureCause> foundFailureCauses)
      Set the FoundFailureCauses for corresponding action.
      Parameters:
      foundFailureCauses - a list of FoundFailureCauses
    • getFoundFailureCauses

      public final List<FoundFailureCause> getFoundFailureCauses()
      Getter for FoundFailureCauses.
      Returns:
      a list of FoundFailureCauses
    • addDownstreamFailureCause

      public final void addDownstreamFailureCause(FailureCauseDisplayData failureCauseDisplayData)
      Add a downstream builds display data.
      Parameters:
      failureCauseDisplayData - object containing a downstream display data
    • getDownstreamFailureCauses

      public final List<FailureCauseDisplayData> getDownstreamFailureCauses()
      Getter for getting a list of downstream display data.
      Returns:
      a list of all downstream display data
    • getLinks

      public final FailureCauseDisplayData.Links 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