com.atlassian.bamboo.repository
Interface BranchDetectionCapableRepository
- All Superinterfaces:
- BambooPluginModule, BranchAwareRepository, BuildConfigurationAwarePlugin, ConfigurablePlugin, ConvertibleFromConfig, DescriptionProvider, InitablePluginModule, NameProvider, RenderableBuildConfiguration, Repository, RepositoryV2, java.io.Serializable
- All Known Implementing Classes:
- BitbucketRepository, HgRepository
public interface BranchDetectionCapableRepository
- extends BranchAwareRepository
Repository that supports retrieving information about open branches.
Used for monitoring plans for new branches.
- Since:
- 4.0
- See Also:
Repository
getOpenBranches
@NotNull
java.util.List<VcsBranch> getOpenBranches()
throws RepositoryException
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
CommitContext getLastCommit()
throws RepositoryException
- 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
CommitContext getFirstCommit()
throws RepositoryException
- Retrieve the commit that created the Branch.
- Returns:
- the first commit to the branch
- Throws:
RepositoryException
Copyright © 2012 Atlassian. All Rights Reserved.