public interface RepositoryV2 extends Serializable, BambooPluginModule
Modifier and Type | Method and Description |
---|---|
BuildRepositoryChanges |
collectChangesSinceLastBuild(String planKey,
String lastVcsRevisionKey)
Collects the changes since the lastVcsRevisionKey.
|
File |
getSourceCodeDirectory(PlanKey planKey)
Deprecated.
since 3.3 Repository must handle checkout to any sub-directory.
|
boolean |
isRepositoryDifferent(Repository repository)
Checks if the current repo is the same as the given repository
|
@NotNull BuildRepositoryChanges collectChangesSinceLastBuild(@NotNull String planKey, @Nullable String lastVcsRevisionKey) throws RepositoryException
planKey
- lastVcsRevisionKey
- can be null, if null you should ensure the correct vcsrevisionkey is returned in the BuildChanges object.RepositoryException
- if something goes wrong@NotNull @Deprecated File getSourceCodeDirectory(@NotNull PlanKey planKey) throws RepositoryException
CustomSourceDirectoryAwareRepository
- The returned path should be absoluteplanKey
- Plan's keyRepositoryException
- A generic failureboolean isRepositoryDifferent(@NotNull Repository repository)
repository
- to compare againstCopyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.