public class BitbucketCloudBranchDetector extends AbstractBitbucketCloudExecutor implements VcsBranchDetector
| Constructor and Description |
|---|
BitbucketCloudBranchDetector() |
| Modifier and Type | Method and Description |
|---|---|
@NotNull CommitContext |
getFirstCommitApproximation(@NotNull VcsRepositoryData repositoryData)
Retrieve an old, preferably the first commit on a branch.
|
@NotNull CommitContext |
getLastCommit(@NotNull VcsRepositoryData repositoryData)
Retrieve last commit on the branch set on this Repository.
|
@NotNull List<VcsBranch> |
getOpenBranches(@NotNull VcsRepositoryData repositoryData)
Set of open branches that are discovered in the repository. |
@Nullable ContextualVcsId<VcsBranchDetector> |
getVcsIdForExecutor(@NotNull VcsRepositoryData vcsRepositoryData)
Returned id has to fulfill the following:
Given two VcsRepositoryData objects A and B, and executor e returning equal ContextualVcsId (in terms of equals()),
for any operation foo() provided by the executor,
the calls e::foo(A) and e::foo(B) should be equivalent.
|
boolean |
usePollingForBranchDetection(@NotNull VcsRepositoryData repositoryData)
Check if for specific repository configuration Bamboo needs to actively poll in
order to detect new/deleted branches.
|
bitbucketCloudToUnderlyingVcsData, getUnderlyingVcsModuleDescriptor, setVcsRepositoryManagerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFirstCommit@Nullable public @Nullable ContextualVcsId<VcsBranchDetector> getVcsIdForExecutor(@NotNull @NotNull VcsRepositoryData vcsRepositoryData)
IdentifyingExecutorVcsBranchDetector. If they also point
to the same branch, they are considered equal in context of VcsChangeDetectorgetVcsIdForExecutor in interface IdentifyingExecutor<VcsBranchDetector>@NotNull public @NotNull List<VcsBranch> getOpenBranches(@NotNull @NotNull VcsRepositoryData repositoryData) throws RepositoryException
VcsBranchDetectorSet 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).getOpenBranches in interface VcsBranchDetectorList of branch names. May be empty.RepositoryException@NotNull public @NotNull CommitContext getLastCommit(@NotNull @NotNull VcsRepositoryData repositoryData) throws RepositoryException
VcsBranchDetectorgetLastCommit in interface VcsBranchDetectorRepositoryException@NotNull public @NotNull CommitContext getFirstCommitApproximation(@NotNull @NotNull VcsRepositoryData repositoryData) throws RepositoryException
VcsBranchDetectorgetFirstCommitApproximation in interface VcsBranchDetectorRepositoryExceptionpublic boolean usePollingForBranchDetection(@NotNull
@NotNull VcsRepositoryData repositoryData)
VcsBranchDetectorusePollingForBranchDetection in interface VcsBranchDetectorCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.