Interface CustomSourceDirectoryAwareRepository
- All Superinterfaces:
BambooPluginModule,BuildConfigurationAwarePlugin,ConfigurablePlugin,ConvertibleFromConfig,DescriptionProvider,InitablePluginModule,NameProvider,RenderableBuildConfiguration,Repository,RepositoryV2,Serializable
- All Known Subinterfaces:
BitbucketDelegatedRepository,BranchMergingAwareRepository,StashRepository
- All Known Implementing Classes:
BitbucketRepository,GitHubRepository,GitRepository,NullRepository,StashRepositoryImpl,SvnRepository
Repository that supports checkout to any directory.
-
Field Summary
Fields inherited from interface com.atlassian.bamboo.repository.Repository
SELECTED_REPOSITORY, UNKNOWN_HOST -
Method Summary
Modifier and TypeMethodDescription@NotNull StringretrieveSourceCode(@NotNull BuildContext buildContext, @Nullable String vcsRevisionKey, @NotNull File sourceDirectory) Checks out the latest source code from an appropriate repository to specified directoryMethods inherited from interface com.atlassian.bamboo.v2.build.BuildConfigurationAwarePlugin
addDefaultValues, isConfigurationMissing, prepareConfigObject, validateMethods inherited from interface com.atlassian.bamboo.v2.build.ConfigurablePlugin
customizeBuildRequirements, removeBuildRequirementsMethods inherited from interface com.atlassian.bamboo.fieldvalue.ConvertibleFromConfig
populateFromConfig, toConfigurationMethods inherited from interface com.atlassian.bamboo.utils.DescriptionProvider
getDescriptionMethods inherited from interface com.atlassian.bamboo.plugin.InitablePluginModule
initMethods inherited from interface com.atlassian.bamboo.v2.build.RenderableBuildConfiguration
getEditHtml, getViewHtmlMethods inherited from interface com.atlassian.bamboo.repository.Repository
checkConnection, getHost, getKey, getLocationIdentifier, getMinimalEditHtml, getName, getShortKeyMethods inherited from interface com.atlassian.bamboo.v2.build.repository.RepositoryV2
collectChangesSinceLastBuild, getSourceCodeDirectory, isRepositoryDifferent
-
Method Details
-
retrieveSourceCode
@NotNull @NotNull String retrieveSourceCode(@NotNull @NotNull BuildContext buildContext, @Nullable @Nullable String vcsRevisionKey, @NotNull @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
-