public interface VcsBranchDetector extends IdentifyingExecutor<VcsBranchDetector>
Modifier and Type | Method and Description |
---|---|
default CommitContext |
getFirstCommit(VcsRepositoryData repositoryData)
Deprecated.
since 6.0 use/implement
getFirstCommitApproximation(VcsRepositoryData) instead |
default CommitContext |
getFirstCommitApproximation(VcsRepositoryData repositoryData)
Retrieve an old, preferably the first commit on a branch.
|
CommitContext |
getLastCommit(VcsRepositoryData repositoryData)
Retrieve last commit on the branch set on this Repository.
|
List<VcsBranch> |
getOpenBranches(VcsRepositoryData repositoryData)
Set of open branches that are discovered in the repository. |
default boolean |
usePollingForBranchDetection(VcsRepositoryData repositoryData)
Check if for specific repository configuration Bamboo needs to actively poll in
order to detect new/deleted branches.
|
getVcsIdForExecutor
default boolean usePollingForBranchDetection(@NotNull VcsRepositoryData repositoryData)
repositoryData
- @NotNull List<VcsBranch> getOpenBranches(@NotNull VcsRepositoryData repositoryData) throws RepositoryException
Set
of open branches that are discovered in the repository. Returns empty collection if no branches at
all (can that happen?). Used for monitoring repositories for new branches.
An open branch is a branch that is considered 'open' by underlying VCS - it has nothing to do with the actual
development on that branch (recent commits or so).repositoryData
- List
of branch names. May be empty.RepositoryException
@NotNull CommitContext getLastCommit(@NotNull VcsRepositoryData repositoryData) throws RepositoryException
RepositoryException
@NotNull default CommitContext getFirstCommitApproximation(@NotNull VcsRepositoryData repositoryData) throws RepositoryException
RepositoryException
@Deprecated @Nullable default CommitContext getFirstCommit(@NotNull VcsRepositoryData repositoryData) throws RepositoryException
getFirstCommitApproximation(VcsRepositoryData)
insteadRepositoryException
Copyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.