jetbrains.buildServer.vcs
Interface BuildTypeChangeStatus


public interface BuildTypeChangeStatus

This interface provides information about status of a change in a particular build configuration.

Since:
7.0
Author:
kir

Method Summary
 SBuildType getBuildType()
           
 SBuild getCurrentBuild()
          Returns either the first successful build which contains this change or latest build with this change if there were no successful builds with this change.
 SBuild getFirstBuild()
          Get first build which contains this change (if there is such a build)
 SQueuedBuild getQueuedBuild()
          If there is no first build with this change in the build configuration, and there is a queued build which can contain this change, return the first such queued build.
 boolean isFailed()
          Returns whether a change status for the build type is "failed".
 boolean isSuccessful()
           
 

Method Detail

getBuildType

SBuildType getBuildType()
Returns:
corresponding build type

getQueuedBuild

@Nullable
SQueuedBuild getQueuedBuild()
If there is no first build with this change in the build configuration, and there is a queued build which can contain this change, return the first such queued build. The returned queued build is most likely the first one which will contain this change.

Returns:
see above

getFirstBuild

@Nullable
SBuild getFirstBuild()
Get first build which contains this change (if there is such a build)

Returns:
see above

getCurrentBuild

@Nullable
SBuild getCurrentBuild()
Returns either the first successful build which contains this change or latest build with this change if there were no successful builds with this change. Returns null if there were no builds with this change yet

Returns:
see above

isSuccessful

boolean isSuccessful()
Returns:
whether a change status is "successful", i.e. there is a finished successful build, which contains this change

isFailed

boolean isFailed()
Returns whether a change status for the build type is "failed".

Returns:
true if there is a started failing build with given build configuration, and there were no successful builds afterwards