Interface RepositoryStoredSpecsService

All Known Implementing Classes:
RepositoryStoredSpecsServiceImpl

@Internal public interface RepositoryStoredSpecsService
Service for executing Repository-stored Specs and importing 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 results
      vcsRepositoryModuleDescriptor - repository module
      repository - repository to checkout
      vcsBranch - vcs branch to checkout
      specsState - specs state for current execution
      commits - a list of commits related to Bamboo Specs, which occurred since last execution
      shouldReportMissingSpecs - whether to notify user in case Specs were not found in repository
      Throws:
      RepositoryException
      IOException
    • 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.