Package com.atlassian.bamboo.repository
Interface BranchAwareRepository
- All Superinterfaces:
BambooPluginModule
,BuildConfigurationAwarePlugin
,ConfigurablePlugin
,ConvertibleFromConfig
,DescriptionProvider
,InitablePluginModule
,NameProvider
,RenderableBuildConfiguration
,Repository
,RepositoryV2
,Serializable
- All Known Subinterfaces:
BitbucketDelegatedRepository
,BranchDetectionCapableRepository
,BranchInformationProvider
,BranchMergingAwareRepository
,StashRepository
- All Known Implementing Classes:
BitbucketRepository
,GitHubRepository
,GitRepository
,StashRepositoryImpl
,SvnRepository
Repository that supports setting and getting the current branch.
- Since:
- 4.0
- See Also:
-
Field Summary
Fields inherited from interface com.atlassian.bamboo.repository.Repository
SELECTED_REPOSITORY, UNKNOWN_HOST
-
Method Summary
Modifier and TypeMethodDescription@NotNull VcsBranch
void
setVcsBranch
(@NotNull VcsBranch branch) Set and prepare the repository for using an arbitrary branch.Methods inherited from interface com.atlassian.bamboo.v2.build.BuildConfigurationAwarePlugin
addDefaultValues, isConfigurationMissing, prepareConfigObject, validate
Methods inherited from interface com.atlassian.bamboo.v2.build.ConfigurablePlugin
customizeBuildRequirements, removeBuildRequirements
Methods inherited from interface com.atlassian.bamboo.fieldvalue.ConvertibleFromConfig
populateFromConfig, toConfiguration
Methods inherited from interface com.atlassian.bamboo.utils.DescriptionProvider
getDescription
Methods inherited from interface com.atlassian.bamboo.plugin.InitablePluginModule
init
Methods inherited from interface com.atlassian.bamboo.v2.build.RenderableBuildConfiguration
getEditHtml, getViewHtml
Methods inherited from interface com.atlassian.bamboo.repository.Repository
checkConnection, getHost, getKey, getLocationIdentifier, getMinimalEditHtml, getName, getShortKey
Methods inherited from interface com.atlassian.bamboo.v2.build.repository.RepositoryV2
collectChangesSinceLastBuild, getSourceCodeDirectory, isRepositoryDifferent
-
Method Details
-
getVcsBranch
- Returns:
- the branch being used currently by this repository.
-
setVcsBranch
Set and prepare the repository for using an arbitrary branch. Generally the subsequent getVcsBranch should return the same branch name.
-