public class GitWorkingCopyManager extends AbstractGitExecutor implements MergingVcsWorkingCopyManager, UpdatingVcsWorkingCopyManager, NoContextVcsWorkingCopyManager
buildDirectoryManager, customVariableContext, DEFAULT_BRANCH, i18nResolver, sshProxyService, trustedKeyHelper| Constructor and Description |
|---|
GitWorkingCopyManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDoMerge() |
VcsWorkingCopy |
checkoutAndMerge(CommonContext commonContext,
VcsRepositoryData vcsRepositoryData,
VcsBranch targetBranch,
PlanVcsRevisionData revisionOnTarget,
VcsBranch sourceBranch,
PlanVcsRevisionData sourceRevision,
File targetPath)
Checks out the targetBranch and merges sourceBranch to it.
|
VcsWorkingCopy |
commitLocal(VcsWorkingCopy workingCopy,
VcsRepositoryData vcsRepositoryData,
String commitMessage)
Create a local commit.
|
Set<Requirement> |
getMergingRequirements()
If executing merge imposes capability requirements on top of those
returned by
VcsExecutorWithRequirements#getRequirements(), return them here. |
VcsWorkingCopy |
retrieveSourceCode(CommonContext commonContext,
VcsRepositoryData repositoryData,
PlanVcsRevisionData targetRevision,
File targetPath)
Checkout or update a working copy to a revision.
|
void |
setBranchIntegrationHelper(VcsBranchIntegrationHelper branchIntegrationHelper) |
void |
setBuildLoggerManager(BuildLoggerManager buildLoggerManager) |
VcsWorkingCopy |
updateRemote(VcsWorkingCopy workingCopy,
VcsRepositoryData vcsRepositoryData,
String commitMessage)
Update remoter repository.
|
VcsWorkingCopy |
updateToLatestRevision(CommonContext commonContext,
VcsRepositoryData repositoryData,
File targetPath)
Checkout or update a working copy to the latest revision.
|
VcsWorkingCopy |
updateToLatestRevision(VcsRepositoryData repositoryData,
File targetPath)
Checkout or update a working copy to the latest revision.
|
getAccessData, getCacheDirectory, getCachePath, getGitCapability, getSharedCredentialsIdField, getSshCapability, getSubstitutedAccessData, getSubstitutedAccessDataBuilder, getWorkingDirectory, isUsingSharedCredentials, rethrowOrRemoveDirectory, setBuildDirectoryManager, setCapabilityContext, setCredentialsAccessor, setCustomVariableContext, setI18nResolver, setSshProxyService, setTrustedKeyHelper, substituteString@NotNull public VcsWorkingCopy retrieveSourceCode(@NotNull CommonContext commonContext, @NotNull VcsRepositoryData repositoryData, @NotNull PlanVcsRevisionData targetRevision, @NotNull File targetPath) throws RepositoryException
VcsWorkingCopyManagerretrieveSourceCode in interface VcsWorkingCopyManagercommonContext - - a current build or deployment contextrepositoryData - - configuration of a repository to checkout/updatetargetRevision - - revision to check out or update totargetPath - - workings copy's path. Note that some legacy implementation may ignore this parameter. (see FixedDirectoryWorkingCopyManager)RepositoryException@NotNull public VcsWorkingCopy updateToLatestRevision(@NotNull CommonContext commonContext, @NotNull VcsRepositoryData repositoryData, @NotNull File targetPath) throws RepositoryException
VcsWorkingCopyManagerupdateToLatestRevision in interface VcsWorkingCopyManagercommonContext - - a current build or deployment contextrepositoryData - - configuration of a repository to checkout/updatetargetPath - - workings copy's path. Note that some legacy implementation may ignore this parameter. (see FixedDirectoryWorkingCopyManager)RepositoryException@NotNull public VcsWorkingCopy updateToLatestRevision(@NotNull VcsRepositoryData repositoryData, @NotNull File targetPath) throws RepositoryException
NoContextVcsWorkingCopyManagerupdateToLatestRevision in interface NoContextVcsWorkingCopyManagerrepositoryData - - configuration of a repository to checkout/updatetargetPath - - workings copy's path. Note that some legacy implementation may ignore this parameter. (see FixedDirectoryWorkingCopyManager)RepositoryException@NotNull public VcsWorkingCopy checkoutAndMerge(@NotNull CommonContext commonContext, @NotNull VcsRepositoryData vcsRepositoryData, @NotNull VcsBranch targetBranch, @NotNull PlanVcsRevisionData revisionOnTarget, @NotNull VcsBranch sourceBranch, @NotNull PlanVcsRevisionData sourceRevision, @NotNull File targetPath) throws RepositoryException
MergingVcsWorkingCopyManagercheckoutAndMerge in interface MergingVcsWorkingCopyManagervcsRepositoryData - configuration of the repository. Note that the following parameters override branch stored in repository data.targetBranch - - target branch (branch to checkout and merge to)revisionOnTarget - - revision to checkout and merge tosourceBranch - - branch to merge fromsourceRevision - - revision to merge fromtargetPath - - workings copy's pathRepositoryExceptionpublic boolean canDoMerge()
canDoMerge in interface MergingVcsWorkingCopyManager@NotNull public Set<Requirement> getMergingRequirements()
MergingVcsWorkingCopyManagerVcsExecutorWithRequirements#getRequirements(), return them here.getMergingRequirements in interface MergingVcsWorkingCopyManager@NotNull public VcsWorkingCopy commitLocal(@NotNull VcsWorkingCopy workingCopy, @NotNull VcsRepositoryData vcsRepositoryData, @NotNull String commitMessage) throws RepositoryException
UpdatingVcsWorkingCopyManagercommitLocal in interface UpdatingVcsWorkingCopyManagerRepositoryException@NotNull public VcsWorkingCopy updateRemote(@NotNull VcsWorkingCopy workingCopy, @NotNull VcsRepositoryData vcsRepositoryData, @Nullable String commitMessage) throws RepositoryException
UpdatingVcsWorkingCopyManagerupdateRemote in interface UpdatingVcsWorkingCopyManagercommitMessage - - implementors are free to ignore this parameter.RepositoryExceptionpublic void setBuildLoggerManager(BuildLoggerManager buildLoggerManager)
public void setBranchIntegrationHelper(VcsBranchIntegrationHelper branchIntegrationHelper)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.