public interface BranchMergingAwareRepository extends BranchAwareRepository, CustomSourceDirectoryAwareRepository
SELECTED_REPOSITORY, UNKNOWN_HOST| Modifier and Type | Method and Description |
|---|---|
String |
getBranchIntegrationEditHtml()
Gives repository a chance to display a HTML on the UI when user is enabling "Branch Integration" feature
|
boolean |
isMergingSupported() |
boolean |
mergeWorkspaceWith(BuildContext buildContext,
File checkoutDirectory,
String targetRevision)
Merges a workspace located in checkout directory with the target revision.
|
String |
retrieveSourceCode(BuildContext buildContext,
String vcsRevisionKey,
File sourceDirectory,
int depth)
Checks out the latest source code from an appropriate repository to specified directory
|
getVcsBranch, setVcsBranchretrieveSourceCodecheckConnection, getHost, getKey, getLocationIdentifier, getMinimalEditHtml, getName, getShortKeypopulateFromConfig, toConfigurationcollectChangesSinceLastBuild, getSourceCodeDirectory, isRepositoryDifferentcustomizeBuildRequirements, removeBuildRequirementsaddDefaultValues, isConfigurationMissing, prepareConfigObject, validateinitgetEditHtml, getViewHtmlgetDescriptionboolean mergeWorkspaceWith(@NotNull
BuildContext buildContext,
@NotNull
File checkoutDirectory,
@NotNull
String targetRevision)
throws RepositoryException
buildContext - the build context of build doing the mergecheckoutDirectory - the workspace to use for mergetargetRevision - the revision to merge withRepositoryExceptionboolean isMergingSupported()
@NotNull String retrieveSourceCode(@NotNull BuildContext buildContext, @Nullable String vcsRevisionKey, @NotNull File sourceDirectory, int depth) throws RepositoryException
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)RepositoryException@Nullable String getBranchIntegrationEditHtml()
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.