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, setVcsBranch
retrieveSourceCode
checkConnection, getHost, getKey, getLocationIdentifier, getMinimalEditHtml, getName, getShortKey
populateFromConfig, toConfiguration
collectChangesSinceLastBuild, getSourceCodeDirectory, isRepositoryDifferent
customizeBuildRequirements, removeBuildRequirements
addDefaultValues, isConfigurationMissing, prepareConfigObject, validate
init
getEditHtml, getViewHtml
getDescription
boolean 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 withRepositoryException
boolean 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.