Package com.atlassian.bamboo.repository
Interface BranchDetectionCapableRepository
-
- All Superinterfaces:
BambooPluginModule
,BranchAwareRepository
,BuildConfigurationAwarePlugin
,ConfigurablePlugin
,ConvertibleFromConfig
,DescriptionProvider
,InitablePluginModule
,NameProvider
,RenderableBuildConfiguration
,Repository
,RepositoryV2
,Serializable
- All Known Subinterfaces:
BitbucketDelegatedRepository
,BranchInformationProvider
,StashRepository
- All Known Implementing Classes:
BitbucketRepository
,GitHubRepository
,GitRepository
,StashRepositoryImpl
,SvnRepository
@Deprecated @PublicApi public interface BranchDetectionCapableRepository extends BranchAwareRepository
Deprecated.useBranchInformationProvider
instead.Repository that supports retrieving information about open branches. Used for monitoring plans for new branches.- Since:
- 4.0
- See Also:
Repository
-
-
Field Summary
-
Fields inherited from interface com.atlassian.bamboo.repository.Repository
SELECTED_REPOSITORY, UNKNOWN_HOST
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description @Nullable CommitContext
getFirstCommit()
Deprecated.Retrieve the commit that created the Branch.@Nullable CommitContext
getLastCommit()
Deprecated.Retrieve last commit on the branch set on this Repository.@NotNull List<VcsBranch>
getOpenBranches(@Nullable String context)
Deprecated.Set
of open branches that are discovered in the repository.-
Methods inherited from interface com.atlassian.bamboo.repository.BranchAwareRepository
getVcsBranch, setVcsBranch
-
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 Detail
-
getOpenBranches
@NotNull @NotNull List<VcsBranch> getOpenBranches(@Nullable @Nullable String context) throws RepositoryException
Deprecated.Set
of open branches that are discovered in the repository. Returns empty collection if no branches at all (can that happen?). Used for monitoring repositories for new branches. An open branch is a branch that is considered 'open' by underlying VCS - it has nothing to do with the actual development on that branch (recent commits or so).- Returns:
List
of branch names. May be empty.- Throws:
RepositoryException
-
getLastCommit
@Nullable @Nullable CommitContext getLastCommit() throws RepositoryException
Deprecated.Retrieve last commit on the branch set on this Repository. Method is used by Chain Branch automatic expiry. If this method returns null Chain Branch is not expired.- Returns:
- the last commit or null if N/A
- Throws:
RepositoryException
-
getFirstCommit
@Nullable @Nullable CommitContext getFirstCommit() throws RepositoryException
Deprecated.Retrieve the commit that created the Branch.- Returns:
- the first commit to the branch
- Throws:
RepositoryException
-
-