public class BitbucketServerChangeDetector extends AbstractBitbucketServerExecutor implements VcsChangeDetector
vcsRepositoryManager| Constructor and Description |
|---|
BitbucketServerChangeDetector() |
| Modifier and Type | Method and Description |
|---|---|
BuildRepositoryChanges |
collectChangesForInitialBuild(PlanKey planKey,
VcsRepositoryData repositoryData,
VcsBranch otherBranch,
boolean otherBranchUnreliable)
This method is used to generate the list of commits for an initial build of a plan branch.
|
BuildRepositoryChanges |
collectChangesForRevision(PlanKey planKey,
VcsRepositoryData repositoryData,
String customRevision) |
BuildRepositoryChanges |
collectChangesSinceRevision(PlanKey planKey,
VcsRepositoryData repositoryData,
PlanVcsRevisionData lastRevisionData) |
ContextualVcsId |
getVcsIdForExecutor(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.
|
bitbucketServerToGitData, bitbucketServerToReadOnlyGitData, getGitModuleDescriptor, stashServerRemoteEventsAreWorking@NotNull public BuildRepositoryChanges collectChangesSinceRevision(@NotNull PlanKey planKey, @NotNull VcsRepositoryData repositoryData, @NotNull PlanVcsRevisionData lastRevisionData) throws RepositoryException
collectChangesSinceRevision in interface VcsChangeDetectorRepositoryException@NotNull public BuildRepositoryChanges collectChangesForRevision(@NotNull PlanKey planKey, @NotNull VcsRepositoryData repositoryData, @NotNull String customRevision) throws RepositoryException
collectChangesForRevision in interface VcsChangeDetectorRepositoryExceptionpublic BuildRepositoryChanges collectChangesForInitialBuild(@NotNull PlanKey planKey, @NotNull VcsRepositoryData repositoryData, @NotNull VcsBranch otherBranch, boolean otherBranchUnreliable) throws RepositoryException
VcsChangeDetectorcollectChangesForInitialBuild in interface VcsChangeDetectorotherBranch - branch that can be used as reference when generating the commit listotherBranchUnreliable - indicates that 'otherBranch' is not a reliable reference pointRepositoryException@Nullable public ContextualVcsId getVcsIdForExecutor(@NotNull VcsRepositoryData vcsRepositoryData)
IdentifyingExecutorVcsBranchDetector. If they also point
to the same branch, they are considered equal in context of VcsChangeDetectorgetVcsIdForExecutor in interface IdentifyingExecutorCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.