public interface RssDetectionService
Modifier and Type | Method and Description |
---|---|
ErrorCollection |
canEnqueue(long repositoryId)
Checks whether Bamboo can enqueue RSS detection for the given repository.
|
ErrorCollection |
canEnqueue(VcsRepositoryData vcsRepositoryData)
Checks whether Bamboo can enqueue RSS detection for the given repository.
|
void |
cleanUnfinishedSpecsAndInitService()
Init the service and clean up any stale scan states after Bamboo restart.
|
Future<Boolean> |
enqueue(long repositoryId,
VcsBranch vcsBranch)
Enqueue RSS detection for repository with the given ID and branch.
|
Future<Boolean> |
enqueue(long repositoryId,
VcsBranch vcsBranch,
boolean force)
Enqueue RSS detection for repository with the given ID and branch.
|
Future<Boolean> |
enqueue(long repositoryId,
VcsBranch vcsBranch,
boolean force,
SpecsConsumer specsConsumer)
Enqueue RSS detection for repository with the given ID and given branch.
|
List<String> |
getEnqueuedBranchesForRepository(long repositoryId)
Returns list of branches that are currently enqueued (i.e.
|
boolean |
isInProgress(long repositoryId,
VcsBranch vcsBranch) |
Future<Boolean> |
shutdown()
Shut down the RSS detection service and the underlying thread pool.
|
@NotNull ErrorCollection canEnqueue(long repositoryId)
This method will not attempt to connect to the repository. It will only validate repository's configuration and global Bamboo settings.
repositoryId
- ID of the repository@NotNull ErrorCollection canEnqueue(@NotNull VcsRepositoryData vcsRepositoryData)
This method will not attempt to connect to the repository. It will only validate repository's configuration and global Bamboo settings.
vcsRepositoryData
- repository to check@NotNull Future<Boolean> enqueue(long repositoryId, @NotNull VcsBranch vcsBranch)
DefaultSpecsConsumer
to import Specs execution results.repositoryId
- ID of the linked repositoryvcsBranch
- branch of the repository@NotNull Future<Boolean> enqueue(long repositoryId, @NotNull VcsBranch vcsBranch, boolean force)
DefaultSpecsConsumer
to import Specs execution results.repositoryId
- ID of the linked repositoryvcsBranch
- branch of the repositoryforce
- if true, specs import is executed even if no new commits are found in the repository@NotNull Future<Boolean> enqueue(long repositoryId, @NotNull VcsBranch vcsBranch, boolean force, @NotNull SpecsConsumer specsConsumer)
specsConsumer
to import Specs execution results.repositoryId
- ID of the linked repositoryforce
- if true, specs import is executed even if no new commits are found in the repositoryvcsBranch
- optional VCS branch to checkoutspecsConsumer
- strategy used to import Specs execution results (plans, deployments, etc)@NotNull Future<Boolean> shutdown()
boolean isInProgress(long repositoryId, @NotNull VcsBranch vcsBranch)
void cleanUnfinishedSpecsAndInitService()
@NotNull List<String> getEnqueuedBranchesForRepository(long repositoryId)
repositoryId
- ID of the linked repositoryCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.