com.atlassian.bamboo.v2.build.repository
Interface CustomSourceDirectoryAwareRepository
- All Superinterfaces:
- BambooPluginModule, BuildConfigurationAwarePlugin, ConfigurablePlugin, ConvertibleFromConfig, DescriptionProvider, InitablePluginModule, NameProvider, RenderableBuildConfiguration, Repository, RepositoryV2, Serializable
- All Known Subinterfaces:
- BitbucketDelegatedRepository, BranchMergingAwareRepository
- All Known Implementing Classes:
- BitbucketRepository, GitHubRepository, GitRepository, HgRepository, NullRepository, StashRepository, SvnRepository
public interface CustomSourceDirectoryAwareRepository
- extends Repository
Repository that supports checkout to any directory.
retrieveSourceCode
@NotNull
String retrieveSourceCode(@NotNull
BuildContext buildContext,
@Nullable
String vcsRevisionKey,
@NotNull
File sourceDirectory)
throws RepositoryException
- Checks out the latest source code from an appropriate repository to specified directory
- Parameters:
buildContext
- vcsRevisionKey
- - may be null if you want latest codesourceDirectory
- - directory to checkout to
- Returns:
- vcsRevisionKey - the revision
- Throws:
RepositoryException
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.