Class ResultSummaryHelper
- java.lang.Object
-
- com.atlassian.bamboo.resultsummary.ResultSummaryHelper
-
public class ResultSummaryHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
SPECS_FAILURE
static String
SPECS_SOURCE_ID
static String
SPECS_SUCCESS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
containsSpecsStatusMetadata(@NotNull ImmutableResultsSummary resultsSummary)
static @NotNull Map<String,String>
getSpecsCustomData(@NotNull ImmutableVcsLocationBambooSpecsState bambooSpecsState, boolean success)
static List<String>
getSpecsKeys()
static boolean
isBambooSpecFailure(@NotNull ImmutableResultsSummary resultsSummary)
static boolean
isBambooSpecResult(@NotNull ImmutableResultsSummary resultsSummary)
static boolean
isBambooSpecSuccess(@NotNull ImmutableResultsSummary resultsSummary)
static void
markAsBambooSpecFailure(@NotNull BuildContextBuilder buildContextBuilder, @NotNull ImmutableVcsLocationBambooSpecsState bambooSpecsState)
Mark build context builder as Bamboo Specs execution failure.static void
markAsBambooSpecSuccess(@NotNull BuildContextBuilder buildContextBuilder, @NotNull ImmutableVcsLocationBambooSpecsState bambooSpecsState)
Mark build context builder as Bamboo Specs execution success.static void
updateCancellationDetails(@NotNull ResultsSummary resultsSummary, @Nullable BuildCancelledDetails buildCancellationDetails)
-
-
-
Field Detail
-
SPECS_SOURCE_ID
public static final String SPECS_SOURCE_ID
- See Also:
- Constant Field Values
-
SPECS_FAILURE
public static final String SPECS_FAILURE
- See Also:
- Constant Field Values
-
SPECS_SUCCESS
public static final String SPECS_SUCCESS
- See Also:
- Constant Field Values
-
-
Method Detail
-
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)
-
-