@ExperimentalApi
public interface BambooSpecsHandler
Modifier and Type | Field and Description |
---|---|
static String |
BAMBOO_SPECS_DIRECTORY
Directory in which Bamboo Specs are stored within a repository.
|
static List<String> |
BAMBOO_YAML_FILES
YAML files which contain YAML Bamboo Specs.
|
Modifier and Type | Method and Description |
---|---|
Optional<String> |
detectSpecRevision(VcsRepositoryData repositoryData,
Object source)
Attempts to obtain latest revision from the repository which may have changed Bamboo Specs.
|
List<CommitContext> |
findCommitsToSpecs(VcsRepositoryData repositoryData,
String rev1,
String rev2)
Extracts a list of commits related to Bamboo Specs, which occurred between revisions
rev1 and
rev2 . |
boolean |
isNewer(VcsRepositoryData repositoryData,
String rev1,
String rev2)
Returns true if
rev2 is a newer revision in the repository than rev1 . |
boolean |
isWebhookRequired() |
default boolean |
supportsDivergentBranches() |
static final String BAMBOO_SPECS_DIRECTORY
static final List<String> BAMBOO_YAML_FILES
BAMBOO_SPECS_DIRECTORY
.@NotNull Optional<String> detectSpecRevision(@NotNull VcsRepositoryData repositoryData, @NotNull Object source) throws RepositoryException
repositoryData
- repositorysource
- entry point to begin scanning (for example: branch name), actual type may depend on
repository typeBAMBOO_SPECS_DIRECTORY
doesn't exist.RepositoryException
boolean isNewer(@NotNull VcsRepositoryData repositoryData, @NotNull String rev1, @NotNull String rev2) throws RepositoryException
rev2
is a newer revision in the repository than rev1
. In other words, returns
true if it is possible to reach rev1
by following parent relationship starting from rev2
.RepositoryException
@NotNull List<CommitContext> findCommitsToSpecs(@NotNull VcsRepositoryData repositoryData, @NotNull String rev1, @NotNull String rev2) throws RepositoryException
rev1
and
rev2
.RepositoryException
boolean isWebhookRequired()
default boolean supportsDivergentBranches()
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.