public class BuildStatusHelper extends Object
Constructor and Description |
---|
BuildStatusHelper(ImmutablePlan plan,
ResultsSummary currentBuildResult,
ResultsSummaryManager resultsSummaryManager) |
BuildStatusHelper(ResultsSummaryManager resultsSummaryManager,
ImmutableBuildable buildable,
int buildNumber) |
Modifier and Type | Method and Description |
---|---|
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() |
ResultsSummary |
getFailingSinceBuild()
If the currentBuildResult is set and failing then return first failed BuildResultSummary in series.
|
ResultsSummary |
getFirstBuildInSequence()
Poorly named method.
|
ResultsSummary |
getFixedInBuild()
If the currentBuildResult is set and not successful then return first successful BuildResultSummary after this one.
|
ResultsSummary |
getFixesBuild()
If the currentBuildResult is set and successful then return first failed BuildResultSummary in series that preceded currentBuildResult.
|
int |
getPrecedingConsecutiveFailuresCount() |
ResultsSummary |
getPreviousSuccessfulBuild() |
ResultsSummary |
getSucceedingSinceBuild()
If the currentBuildResult is set and successful then return first successful BuildResultSummary in series.
|
public BuildStatusHelper(@NotNull ImmutablePlan plan, @NotNull ResultsSummary currentBuildResult, @NotNull ResultsSummaryManager resultsSummaryManager)
public BuildStatusHelper(@NotNull ResultsSummaryManager resultsSummaryManager, @NotNull ImmutableBuildable buildable, int buildNumber)
@Nullable public ResultsSummary getFixedInBuild()
@Nullable public ResultsSummary getPreviousSuccessfulBuild()
@Nullable public ResultsSummary getFailingSinceBuild()
@Nullable public ResultsSummary getFixesBuild()
public int getPrecedingConsecutiveFailuresCount()
@Nullable public ResultsSummary getSucceedingSinceBuild()
public int getCountSucceedingSince()
@NotNull public ImmutablePlan getBuild()
@Nullable public 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 © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.