|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.build.BuildStatusHelper
public class BuildStatusHelper
Constructor Summary | |
---|---|
BuildStatusHelper(Plan plan,
ResultsSummary currentBuildResult,
ResultsSummaryManager resultsSummaryManager)
|
|
BuildStatusHelper(ResultsSummaryManager resultsSummaryManager,
Buildable buildable,
int buildNumber)
|
Method Summary | |
---|---|
Plan |
getBuild()
|
int |
getCountFailingSince()
Deprecated. since 2.7 use getPrecedingConsecutiveFailuresCount instead, note that it does not include the current result |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BuildStatusHelper(@NotNull Plan plan, @NotNull ResultsSummary currentBuildResult, @NotNull ResultsSummaryManager resultsSummaryManager)
public BuildStatusHelper(@NotNull ResultsSummaryManager resultsSummaryManager, @NotNull Buildable buildable, int buildNumber)
Method Detail |
---|
@Nullable public ResultsSummary getFixedInBuild()
@Nullable public ResultsSummary getPreviousSuccessfulBuild()
@Nullable public ResultsSummary getFailingSinceBuild()
@Nullable public ResultsSummary getFixesBuild()
public int getPrecedingConsecutiveFailuresCount()
@Deprecated public int getCountFailingSince()
@Nullable public ResultsSummary getSucceedingSinceBuild()
public int getCountSucceedingSince()
@NotNull public Plan 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 fixes
public int getCountOfPrecedingResultsInState(int lowerBuildNumber, BuildState buildState)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |