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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      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.
      java.util.List<SQueuedBuild> getQueuedBuilds()
      If there is no first build with this change in the build configuration, and there are queued builds which can contain this change, return the these queued builds (first queued build per branch).
      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
      • getQueuedBuilds

        @NotNull
        java.util.List<SQueuedBuild> getQueuedBuilds()
        If there is no first build with this change in the build configuration, and there are queued builds which can contain this change, return the these queued builds (first queued build per branch). It is possible to have several queued builds in configurations with dag-based VCS roots. Builds are sorted by branch name.
        Returns:
        see above
        Since:
        8.1
      • 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