public class BuildStatusHelper extends Object
Constructor and Description |
---|
BuildStatusHelper(@Nullable ImmutableBuildable buildable,
@NotNull PlanKey planKey,
int buildNumber,
@NotNull ResultsSummaryManager resultsSummaryManager) |
BuildStatusHelper(@Nullable ImmutablePlan plan,
@NotNull PlanKey planKey,
@NotNull ResultsSummary currentBuildResult,
@NotNull ResultsSummaryManager resultsSummaryManager) |
Modifier and Type | Method and Description |
---|---|
@NotNull ImmutablePlan |
getBuild() |
int |
getCountOfPrecedingResultsInState(int lowerBuildNumber,
BuildState buildState)
Returns count of preceding results in state buildState with range starting with build lowerBuildNumber (inclusive).
|
int |
getCountSucceedingSince() |
@Nullable ResultsSummary |
getFailingSinceBuild()
If the currentBuildResult is set and failing then return first failed BuildResultSummary in series.
|
@Nullable ResultsSummary |
getFirstBuildInSequence()
Poorly named method.
|
@Nullable ResultsSummary |
getFixedInBuild()
If the currentBuildResult is set and not successful then return first successful BuildResultSummary after this one.
|
@Nullable ResultsSummary |
getFixesBuild()
If the currentBuildResult is set and successful then return first failed BuildResultSummary in series that preceded currentBuildResult.
|
int |
getPrecedingConsecutiveFailuresCount() |
@Nullable ResultsSummary |
getPreviousSuccessfulBuild() |
@Nullable ResultsSummary |
getSucceedingSinceBuild()
If the currentBuildResult is set and successful then return first successful BuildResultSummary in series.
|
public BuildStatusHelper(@Nullable @Nullable ImmutablePlan plan, @NotNull @NotNull PlanKey planKey, @NotNull @NotNull ResultsSummary currentBuildResult, @NotNull @NotNull ResultsSummaryManager resultsSummaryManager)
public BuildStatusHelper(@Nullable @Nullable ImmutableBuildable buildable, @NotNull @NotNull PlanKey planKey, int buildNumber, @NotNull @NotNull ResultsSummaryManager resultsSummaryManager)
@Nullable public @Nullable ResultsSummary getFixedInBuild()
@Nullable public @Nullable ResultsSummary getPreviousSuccessfulBuild()
@Nullable public @Nullable ResultsSummary getFailingSinceBuild()
@Nullable public @Nullable ResultsSummary getFixesBuild()
public int getPrecedingConsecutiveFailuresCount()
@Nullable public @Nullable ResultsSummary getSucceedingSinceBuild()
public int getCountSucceedingSince()
@NotNull public @NotNull ImmutablePlan getBuild()
@Nullable public @Nullable ResultsSummary getFirstBuildInSequence()
BuildResultsSummary
in this sequence. Essentially, it tries to find the
first failing build, failing that it finds the build that this build fixespublic int getCountOfPrecedingResultsInState(int lowerBuildNumber, BuildState buildState)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.