com.atlassian.bamboo.repository
Interface BranchMergingAwareRepository
- All Superinterfaces:
- BambooPluginModule, BranchAwareRepository, BuildConfigurationAwarePlugin, ConfigurablePlugin, ConvertibleFromConfig, CustomSourceDirectoryAwareRepository, DescriptionProvider, InitablePluginModule, NameProvider, RenderableBuildConfiguration, Repository, RepositoryV2, Serializable
- All Known Subinterfaces:
- BitbucketDelegatedRepository
- All Known Implementing Classes:
- BitbucketRepository, GitHubRepository, GitRepository, HgRepository, StashRepository
public interface BranchMergingAwareRepository
- extends BranchAwareRepository, CustomSourceDirectoryAwareRepository
mergeWorkspaceWith
boolean mergeWorkspaceWith(@NotNull
BuildContext buildContext,
@NotNull
File checkoutDirectory,
@NotNull
String targetRevision)
throws RepositoryException
- Merges a workspace located in checkout directory with the target revision.
- Parameters:
buildContext
- the build context of build doing the mergecheckoutDirectory
- the workspace to use for mergetargetRevision
- the revision to merge with
- Returns:
- true if the result of the merge would result in a non-empty commit
- Throws:
RepositoryException
isMergingSupported
boolean isMergingSupported()
retrieveSourceCode
@NotNull
String retrieveSourceCode(@NotNull
BuildContext buildContext,
@Nullable
String vcsRevisionKey,
@NotNull
File sourceDirectory,
int depth)
throws RepositoryException
- Checks out the latest source code from an appropriate repository to specified directory
- Parameters:
buildContext
- vcsRevisionKey
- - may be null if you want latest codesourceDirectory
- - directory to checkout todepth
- - how many historical revisions we'd like to check out (-1 means all revisions)
- Returns:
- vcsRevisionKey - the revision
- Throws:
RepositoryException
getBranchIntegrationEditHtml
@Nullable
String getBranchIntegrationEditHtml()
- Gives repository a chance to display a HTML on the UI when user is enabling "Branch Integration" feature
- Returns:
- HTML snippet to be displayed on UI
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.