public interface BranchMergingAwareRepository extends BranchAwareRepository, CustomSourceDirectoryAwareRepository
SELECTED_REPOSITORY, UNKNOWN_HOST
Modifier and Type | Method and Description |
---|---|
@Nullable String |
getBranchIntegrationEditHtml()
Gives repository a chance to display a HTML on the UI when user is enabling "Branch Integration" feature
|
boolean |
isMergingSupported() |
boolean |
mergeWorkspaceWith(@NotNull BuildContext buildContext,
@NotNull File checkoutDirectory,
@NotNull String targetRevision)
Merges a workspace located in checkout directory with the target revision.
|
@NotNull String |
retrieveSourceCode(@NotNull BuildContext buildContext,
@Nullable String vcsRevisionKey,
@NotNull 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 @NotNull BuildContext buildContext, @NotNull @NotNull File checkoutDirectory, @NotNull @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 @NotNull String retrieveSourceCode(@NotNull @NotNull BuildContext buildContext, @Nullable @Nullable String vcsRevisionKey, @NotNull @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 @Nullable String getBranchIntegrationEditHtml()
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.