public interface BambooSpecsManager
Modifier and Type | Method and Description |
---|---|
void |
detachPlanFromRss(long planId)
Detach plan from RSS.
|
Optional<VcsBambooSpecsSource> |
findBambooSpecsSourceForPlan(long planId)
Find
VcsBambooSpecsSource for a plan. |
@NotNull List<VcsLocationBambooSpecsState> |
findByVcsLocationIdOrderBySpecsExecutionDate(long repositoryId,
@NotNull String branch,
int limit)
Return latest
limit entries for given repository and its branch |
@NotNull Collection<Long> |
findDeploymentProjectsInOtherStates(VcsLocationBambooSpecsState specsState)
Returns ids pf RSS-managed deployment projects that have been updated in RSS runs other than the one supplied.
|
Optional<VcsLocationBambooSpecsState> |
findLatestState(long rootVcsRepositoryId,
@NotNull String branch)
Find latest
VcsLocationBambooSpecsState for given repository and branch |
@NotNull Collection<PlanKey> |
findPlansInOtherStates(VcsLocationBambooSpecsState specsState)
Returns RSS-managed plans that have been updated in RSS runs other than the one supplied.
|
Optional<VcsBambooSpecsSource> |
findSourceById(long specsStateId)
Find
VcsBambooSpecsSource by id. |
@NotNull List<String> |
findSpecsBranches(long rootVcsRepositoryId,
@NotNull String searchTerm)
Get all branches from
VcsLocationBambooSpecsState for given repository which match the search term |
@NotNull List<VcsLocationBambooSpecsState> |
getUnfinishedSpecsScans()
Get all
VcsLocationBambooSpecsState that are in unfinished state |
long |
removeOrphanedSpecStatesNoTx()
Cleanup Bamboo Specs states DB records and log files.
|
void |
save(VcsBambooSpecsSource vcsBambooSpecsSource)
Save new
VcsBambooSpecsSource entity. |
void |
save(VcsLocationBambooSpecsState vcsLocationBambooSpecsState)
Save new
VcsLocationBambooSpecsState entity. |
void |
updateAfterSpecsImport(VcsLocationBambooSpecsState vcsLocationBambooSpecsState,
VcsLocationBambooSpecsState.SpecsImportState specsImportState,
String logFilename)
Update given
VcsLocationBambooSpecsState with specs import results and save it. |
void |
updateBambooSpecsSourceForPlan(@NotNull Chain plan,
@NotNull VcsBambooSpecsSource vcsBambooSpecsSourceId)
Update
VcsBambooSpecsSource for a plan. |
Optional<VcsLocationBambooSpecsState> findLatestState(long rootVcsRepositoryId, @NotNull @NotNull String branch)
VcsLocationBambooSpecsState
for given repository and branchvoid save(VcsLocationBambooSpecsState vcsLocationBambooSpecsState)
VcsLocationBambooSpecsState
entity.void save(VcsBambooSpecsSource vcsBambooSpecsSource)
VcsBambooSpecsSource
entity.Optional<VcsBambooSpecsSource> findSourceById(long specsStateId)
VcsBambooSpecsSource
by id.@NotNull @NotNull Collection<PlanKey> findPlansInOtherStates(VcsLocationBambooSpecsState specsState)
@NotNull @NotNull Collection<Long> findDeploymentProjectsInOtherStates(VcsLocationBambooSpecsState specsState)
@NotNull @NotNull List<VcsLocationBambooSpecsState> findByVcsLocationIdOrderBySpecsExecutionDate(long repositoryId, @NotNull @NotNull String branch, int limit)
limit
entries for given repository and its branchvoid updateAfterSpecsImport(VcsLocationBambooSpecsState vcsLocationBambooSpecsState, VcsLocationBambooSpecsState.SpecsImportState specsImportState, String logFilename)
VcsLocationBambooSpecsState
with specs import results and save it.@Internal long removeOrphanedSpecStatesNoTx()
@NotNull @NotNull List<VcsLocationBambooSpecsState> getUnfinishedSpecsScans()
VcsLocationBambooSpecsState
that are in unfinished state@NotNull @NotNull List<String> findSpecsBranches(long rootVcsRepositoryId, @NotNull @NotNull String searchTerm)
VcsLocationBambooSpecsState
for given repository which match the search termOptional<VcsBambooSpecsSource> findBambooSpecsSourceForPlan(long planId)
VcsBambooSpecsSource
for a plan.void updateBambooSpecsSourceForPlan(@NotNull @NotNull Chain plan, @NotNull @NotNull VcsBambooSpecsSource vcsBambooSpecsSourceId)
VcsBambooSpecsSource
for a plan.void detachPlanFromRss(long planId)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.