Class ResultSummaryHelper

java.lang.Object
com.atlassian.bamboo.resultsummary.ResultSummaryHelper

public class ResultSummaryHelper extends Object
  • Field Details

  • Method Details

    • updateCancellationDetails

      public static void updateCancellationDetails(@NotNull @NotNull ResultsSummary resultsSummary, @Nullable @Nullable BuildCancelledDetails buildCancellationDetails)
    • isBambooSpecFailure

      public static boolean isBambooSpecFailure(@NotNull @NotNull ImmutableResultsSummary resultsSummary)
      Returns:
      true if given result summary was created on Bamboo Specs execution failure.
    • markAsBambooSpecFailure

      public static void markAsBambooSpecFailure(@NotNull @NotNull BuildContextBuilder buildContextBuilder, @NotNull @NotNull ImmutableVcsLocationBambooSpecsState bambooSpecsState)
      Mark build context builder as Bamboo Specs execution failure.
    • getSpecsCustomData

      @NotNull public static @NotNull Map<String,String> getSpecsCustomData(@NotNull @NotNull ImmutableVcsLocationBambooSpecsState bambooSpecsState, boolean success)
    • markAsBambooSpecSuccess

      public static void markAsBambooSpecSuccess(@NotNull @NotNull BuildContextBuilder buildContextBuilder, @NotNull @NotNull ImmutableVcsLocationBambooSpecsState bambooSpecsState)
      Mark build context builder as Bamboo Specs execution success.
    • isBambooSpecSuccess

      public static boolean isBambooSpecSuccess(@NotNull @NotNull ImmutableResultsSummary resultsSummary)
    • isBambooSpecResult

      public static boolean isBambooSpecResult(@NotNull @NotNull ImmutableResultsSummary resultsSummary)
    • containsSpecsStatusMetadata

      public static boolean containsSpecsStatusMetadata(@NotNull @NotNull ImmutableResultsSummary resultsSummary)
    • getSpecsKeys

      public static List<String> getSpecsKeys()
      Returns:
      keys used to mark build result as related to Bamboo Specs