Package com.atlassian.bamboo.vcs.runtime
Interface NoContextVcsWorkingCopyManager
- All Superinterfaces:
VcsWorkingCopyManager
- All Known Implementing Classes:
BitbucketCloudWorkingCopyManager,BitbucketServerWorkingCopyManager,GitHubWorkingCopyManager,GitWorkingCopyManager,SvnWorkingCopyManager
Working copy manager capable of checking out without
CommonContext being provided.
Used during importing projects from Maven.
Should be able to be used agent-side.
- Since:
- 5.14
-
Method Summary
Modifier and TypeMethodDescription@NotNull VcsWorkingCopyupdateToLatestRevision(@NotNull VcsRepositoryData repositoryData, @NotNull File targetPath) Checkout or update a working copy to the latest revision.default @NotNull VcsWorkingCopyupdateToLatestRevisionForSpecs(@NotNull VcsRepositoryData repositoryData, @NotNull File targetPath) Checkout or update a working copy to the latest revision.Methods inherited from interface com.atlassian.bamboo.vcs.runtime.VcsWorkingCopyManager
retrieveSourceCode, updateToLatestRevision
-
Method Details
-
updateToLatestRevision
@NotNull @NotNull VcsWorkingCopy updateToLatestRevision(@NotNull @NotNull VcsRepositoryData repositoryData, @NotNull @NotNull File targetPath) throws RepositoryException Checkout or update a working copy to the latest revision.- Parameters:
repositoryData- - configuration of a repository to checkout/updatetargetPath- - workings copy's path. Note that some legacy implementation may ignore this parameter. (seeFixedDirectoryWorkingCopyManager)- Returns:
- object representing created/updated working copy
- Throws:
RepositoryException
-
updateToLatestRevisionForSpecs
@NotNull default @NotNull VcsWorkingCopy updateToLatestRevisionForSpecs(@NotNull @NotNull VcsRepositoryData repositoryData, @NotNull @NotNull File targetPath) throws RepositoryException Checkout or update a working copy to the latest revision. The method is desired to work with Specs.- Parameters:
repositoryData- - configuration of a repository to checkout/updatetargetPath- - workings copy's path. Note that some legacy implementation may ignore this parameter. (seeFixedDirectoryWorkingCopyManager)- Returns:
- object representing created/updated working copy
- Throws:
RepositoryException- Since:
- 9.3
-