com.atlassian.bamboo.repository
Interface PushCapableRepository
- All Superinterfaces:
- BambooPluginModule, BuildConfigurationAwarePlugin, ConfigurablePlugin, ConvertibleFromConfig, DescriptionProvider, InitablePluginModule, NameProvider, RenderableBuildConfiguration, Repository, RepositoryV2, java.io.Serializable
- All Known Subinterfaces:
- BitbucketDelegatedRepository
- All Known Implementing Classes:
- BitbucketRepository, HgRepository
public interface PushCapableRepository
- extends Repository
Repository that supports pushing changes back to the remote repository.
- Since:
- 4.0
Method Summary |
java.lang.String |
commit(java.io.File sourceDirectory,
java.lang.String message)
Perform a commit (dvcs commit). |
void |
pushRevision(java.io.File sourceDirectory,
java.lang.String vcsRevisionKey)
Push the specified revision to the remote directory. |
pushRevision
void pushRevision(@NotNull
java.io.File sourceDirectory,
@Nullable
java.lang.String vcsRevisionKey)
throws RepositoryException
- Push the specified revision to the remote directory.
Throws RepositoryException when failed due to connection problems or similar.
- Parameters:
vcsRevisionKey
- - the revisionKey (usually a branch name) to pushsourceDirectory
- - the working directory of the repository we want to push from
- Throws:
RepositoryException
- - when something goes wrong
commit
@NotNull
java.lang.String commit(@NotNull
java.io.File sourceDirectory,
@NotNull
java.lang.String message)
throws RepositoryException
- Perform a commit (dvcs commit).
- Parameters:
sourceDirectory
- - which workspace directory to perform the commitmessage
- - what message use for commit
- Returns:
- Created commit revision key
- Throws:
RepositoryException
- - when something goes wrong
Copyright © 2012 Atlassian. All Rights Reserved.