Interface BranchEx

    • Method Detail

      • getLastChangesFinished

        @Nullable
        SFinishedBuild getLastChangesFinished()
        Returns the last finished build for the branch, or null
        Returns:
        last finished build
      • getLastChangesSuccessfullyFinished

        @Nullable
        SFinishedBuild getLastChangesSuccessfullyFinished()
        Returns the last successfully finished build for the branch, or null
        Returns:
        last successfully finished build
      • getLastChangesStarted

        @Nullable
        SBuild getLastChangesStarted()
        Returns:
        a started build (finished or running) which took latest changes in this branch
      • getLastStarted

        @Nullable
        SBuild getLastStarted()
        Returns:
        last started build
        Since:
        2017.2
      • getLastFinished

        @Nullable
        SFinishedBuild getLastFinished()
        Returns:
        last finished build
        Since:
        2017.2
      • getDetectedChanges

        @NotNull
        List<ChangeDescriptor> getDetectedChanges​(@NotNull
                                                  SelectPrevBuildPolicy prevBuildPolicy,
                                                  @Nullable
                                                  Boolean includeDependencyChanges)
        Returns changes detected in the branch according to previous build policy.
        Parameters:
        prevBuildPolicy -
        includeDependencyChanges - whether to include changes from dependencies (true), include only if show changes from deps option is enabled (null), or do not include - false
        Returns:
      • getDummyBuild

        @NotNull
        DummyBuild getDummyBuild()
        Returns:
        dummy build corresponding to this branch
      • getDummyBuildPromotion

        @NotNull
        DummyBuildPromotion getDummyBuildPromotion()
        Returns:
        dummy promotion corresponding to this branch, same as getDummyBuild().getBuildPromotion, but faster because it avoids creation of dummy build
      • getStatus

        @NotNull
        Status getStatus()
        Returns:
        branch status calculated by latest builds
      • getStatusDescriptor

        @NotNull
        BuildTypeStatusDescriptor getStatusDescriptor()
        Returns:
        branch status descriptor calculated by latest builds
      • getLatestBuilds

        @NotNull
        List<SBuild> getLatestBuilds()
        Returns:
        latest builds ordered by changes (currently running and last finished)
      • getRunningBuilds

        @NotNull
        List<SRunningBuild> getRunningBuilds​(@Nullable
                                             SUser user)
        Parameters:
        user - if specified, the result should include personal builds of the user
        Returns:
        running builds for this branch
      • getQueuedBuilds

        @NotNull
        List<SQueuedBuild> getQueuedBuilds​(@Nullable
                                           SUser user)
        Parameters:
        user - If user is null or has "Show personal builds of other users" enabled, returns all queued builds including all personal builds. Otherwise, returns non-personal queued builds and personal builds of the specified user.
        Returns:
        queued builds for this branch
      • isActive

        boolean isActive()
        Returns whether this branch is active in a build type it belongs to. This means that buildType.getActiveBranches() returns it too.
        Returns:
        true iff the branch is active
      • getTimestamp

        @Nullable
        Date getTimestamp()