Package jetbrains.buildServer.serverSide
Interface BranchEx
-
- All Superinterfaces:
Branch
,Comparable<BranchEx>
,FilteredBranch
- All Known Implementing Classes:
AbstractBuildTypeBranch
public interface BranchEx extends FilteredBranch, Comparable<BranchEx>
Represents a branch with associated data in a build type.- Since:
- 7.1
- Author:
- Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
-
-
Field Summary
-
Fields inherited from interface jetbrains.buildServer.serverSide.Branch
DEFAULT_BRANCH_NAME, UNSPECIFIED_BRANCH_NAME
-
-
Method Summary
-
Methods inherited from interface jetbrains.buildServer.serverSide.Branch
getDisplayName, getName, isDefaultBranch
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface jetbrains.buildServer.serverSide.FilteredBranch
getPrecalcContext, withPrecalcContext
-
-
-
-
Method Detail
-
getLastChangesFinished
@Nullable SFinishedBuild getLastChangesFinished()
Returns the last finished build for the branch, ornull
- Returns:
- last finished build
-
getLastChangesSuccessfullyFinished
@Nullable SFinishedBuild getLastChangesSuccessfullyFinished()
Returns the last successfully finished build for the branch, ornull
- 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:
-
getDetectedChanges
@NotNull List<ChangeDescriptor> getDetectedChanges(@NotNull SelectPrevBuildPolicy prevBuildPolicy, @Nullable Boolean includeDependencyChanges, @NotNull VcsModificationProcessor callback)
-
getDetectedChanges
@NotNull List<ChangeDescriptor> getDetectedChanges(@NotNull ChangesCalculationOptionsEx options)
-
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
-
getBuildType
@NotNull SBuildType getBuildType()
- Specified by:
getBuildType
in interfaceFilteredBranch
- Returns:
- Build type that was used to calculate the logical branch name
-
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 thatbuildType.getActiveBranches()
returns it too.- Returns:
- true iff the branch is active
-
getTimestamp
@Nullable Date getTimestamp()
-
-