public class GitHubWorkingCopyManager extends AbstractGitHubExecutor implements NoContextVcsWorkingCopyManager, MergingVcsWorkingCopyManager, UpdatingVcsWorkingCopyManager, VcsExecutorWithRequirements
vcsRepositoryManager
Constructor and Description |
---|
GitHubWorkingCopyManager(VcsRepositoryManager vcsRepositoryManager,
CapabilityContext capabilityContext) |
Modifier and Type | Method and Description |
---|---|
@NotNull VcsWorkingCopy |
checkoutAndMerge(@NotNull CommonContext commonContext,
@NotNull VcsRepositoryData vcsRepositoryData,
@NotNull VcsBranch targetBranch,
@NotNull PlanVcsRevisionData revisionOnTarget,
@NotNull VcsBranch sourceBranch,
@NotNull PlanVcsRevisionData sourceRevision,
@NotNull File targetPath)
Checks out the targetBranch and merges sourceBranch to it.
|
@NotNull VcsWorkingCopy |
commitLocal(@NotNull VcsWorkingCopy workingCopy,
@NotNull VcsRepositoryData vcsRepositoryData,
@NotNull String commitMessage)
Create a local commit.
|
@NotNull Set<Requirement> |
getRequirements(@NotNull VcsRepositoryData vcsRepositoryData) |
@NotNull VcsWorkingCopy |
retrieveSourceCode(@NotNull CommonContext commonContext,
@NotNull VcsRepositoryData repositoryData,
@NotNull PlanVcsRevisionData targetRevision,
@NotNull File targetPath)
Checkout or update a working copy to a revision.
|
@NotNull VcsWorkingCopy |
updateRemote(@NotNull VcsWorkingCopy workingCopy,
@NotNull VcsRepositoryData vcsRepositoryData,
@NotNull String commitMessage)
Update remote repository.
|
@NotNull VcsWorkingCopy |
updateToLatestRevision(@NotNull CommonContext commonContext,
@NotNull VcsRepositoryData repositoryData,
@NotNull File targetPath)
Checkout or update a working copy to the latest revision.
|
@NotNull VcsWorkingCopy |
updateToLatestRevision(@NotNull VcsRepositoryData repositoryData,
@NotNull File targetPath)
Checkout or update a working copy to the latest revision.
|
getGitModuleDescriptor, githubToGitData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canDoMerge, getMergingRequirements
stageChanges
@Inject public GitHubWorkingCopyManager(VcsRepositoryManager vcsRepositoryManager, CapabilityContext capabilityContext)
@NotNull public @NotNull VcsWorkingCopy commitLocal(@NotNull @NotNull VcsWorkingCopy workingCopy, @NotNull @NotNull VcsRepositoryData vcsRepositoryData, @NotNull @NotNull String commitMessage) throws RepositoryException
UpdatingVcsWorkingCopyManager
commitLocal
in interface UpdatingVcsWorkingCopyManager
RepositoryException
@NotNull public @NotNull VcsWorkingCopy updateToLatestRevision(@NotNull @NotNull VcsRepositoryData repositoryData, @NotNull @NotNull File targetPath) throws RepositoryException
NoContextVcsWorkingCopyManager
updateToLatestRevision
in interface NoContextVcsWorkingCopyManager
repositoryData
- - 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 @NotNull VcsWorkingCopy retrieveSourceCode(@NotNull @NotNull CommonContext commonContext, @NotNull @NotNull VcsRepositoryData repositoryData, @NotNull @NotNull PlanVcsRevisionData targetRevision, @NotNull @NotNull File targetPath) throws RepositoryException
VcsWorkingCopyManager
retrieveSourceCode
in interface VcsWorkingCopyManager
commonContext
- - 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 @NotNull VcsWorkingCopy updateRemote(@NotNull @NotNull VcsWorkingCopy workingCopy, @NotNull @NotNull VcsRepositoryData vcsRepositoryData, @NotNull @NotNull String commitMessage) throws RepositoryException
UpdatingVcsWorkingCopyManager
updateRemote
in interface UpdatingVcsWorkingCopyManager
commitMessage
- - implementors are free to ignore this parameter.RepositoryException
@NotNull public @NotNull VcsWorkingCopy checkoutAndMerge(@NotNull @NotNull CommonContext commonContext, @NotNull @NotNull VcsRepositoryData vcsRepositoryData, @NotNull @NotNull VcsBranch targetBranch, @NotNull @NotNull PlanVcsRevisionData revisionOnTarget, @NotNull @NotNull VcsBranch sourceBranch, @NotNull @NotNull PlanVcsRevisionData sourceRevision, @NotNull @NotNull File targetPath) throws RepositoryException
MergingVcsWorkingCopyManager
checkoutAndMerge
in interface MergingVcsWorkingCopyManager
vcsRepositoryData
- 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 pathRepositoryException
@NotNull public @NotNull VcsWorkingCopy updateToLatestRevision(@NotNull @NotNull CommonContext commonContext, @NotNull @NotNull VcsRepositoryData repositoryData, @NotNull @NotNull File targetPath) throws RepositoryException
VcsWorkingCopyManager
updateToLatestRevision
in interface VcsWorkingCopyManager
commonContext
- - 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 @NotNull Set<Requirement> getRequirements(@NotNull @NotNull VcsRepositoryData vcsRepositoryData)
getRequirements
in interface VcsExecutorWithRequirements
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.