Interface RepositoryStoredSpecsService
- All Known Implementing Classes:
RepositoryStoredSpecsServiceImpl
@Internal
public interface RepositoryStoredSpecsService
Service for executing Repository-stored Specs and importing results
-
Method Summary
Modifier and TypeMethodDescriptionvoidClean up all stale Specs scan statesvoidreportMissingSpecs(@NotNull VcsLocationBambooSpecsState vcsLocationBambooSpecsState, @NotNull VcsRepositoryData repository, @NotNull String errorMessages, @NotNull List<CommitContext> commits) Record failed specs scan.voidrunBambooSpecs(@NotNull SpecsConsumer specsConsumer, @NotNull VcsRepositoryModuleDescriptor vcsRepositoryModuleDescriptor, @NotNull VcsRepositoryData repository, @NotNull VcsBranch vcsBranch, @NotNull VcsLocationBambooSpecsState specsState, @NotNull List<CommitContext> commits, boolean shouldReportMissingSpecs) Execute Bamboo Specs and import results
-
Method Details
-
runBambooSpecs
void runBambooSpecs(@NotNull @NotNull SpecsConsumer specsConsumer, @NotNull @NotNull VcsRepositoryModuleDescriptor vcsRepositoryModuleDescriptor, @NotNull @NotNull VcsRepositoryData repository, @NotNull @NotNull VcsBranch vcsBranch, @NotNull @NotNull VcsLocationBambooSpecsState specsState, @NotNull @NotNull List<CommitContext> commits, boolean shouldReportMissingSpecs) throws RepositoryException, IOException Execute Bamboo Specs and import results- Parameters:
specsConsumer- consumer used to import execution resultsvcsRepositoryModuleDescriptor- repository modulerepository- repository to checkoutvcsBranch- vcs branch to checkoutspecsState- specs state for current executioncommits- a list of commits related to Bamboo Specs, which occurred since last executionshouldReportMissingSpecs- whether to notify user in case Specs were not found in repository- Throws:
RepositoryExceptionIOException
-
cleanUnfinishedSpecsScans
void cleanUnfinishedSpecsScans()Clean up all stale Specs scan states -
reportMissingSpecs
void reportMissingSpecs(@NotNull @NotNull VcsLocationBambooSpecsState vcsLocationBambooSpecsState, @NotNull @NotNull VcsRepositoryData repository, @NotNull @NotNull String errorMessages, @NotNull @NotNull List<CommitContext> commits) Record failed specs scan.
-