public interface PushCapableRepository extends Repository
SELECTED_REPOSITORY, UNKNOWN_HOST
Modifier and Type | Method and Description |
---|---|
String |
commit(File sourceDirectory,
String message)
Perform a commit (dvcs commit).
|
void |
pushRevision(File sourceDirectory,
String vcsRevisionKey)
Push the specified revision to the remote directory.
|
checkConnection, getHost, getKey, getLocationIdentifier, getMinimalEditHtml, getName, getShortKey
populateFromConfig, toConfiguration
collectChangesSinceLastBuild, getSourceCodeDirectory, isRepositoryDifferent
customizeBuildRequirements, removeBuildRequirements
addDefaultValues, isConfigurationMissing, prepareConfigObject, validate
init
getEditHtml, getViewHtml
getDescription
void pushRevision(@NotNull File sourceDirectory, @Nullable String vcsRevisionKey) throws RepositoryException
vcsRevisionKey
- - the revisionKey (usually a branch name) to pushsourceDirectory
- - the working directory of the repository we want to push fromRepositoryException
- - when something goes wrong@NotNull String commit(@NotNull File sourceDirectory, @NotNull String message) throws RepositoryException
sourceDirectory
- - which workspace directory to perform the commitmessage
- - what message use for commitRepositoryException
- - when something goes wrongCopyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.