Interface RepositoryStoredSpecsLogService

All Known Implementing Classes:
RepositoryStoredSpecsLogServiceImpl

public interface RepositoryStoredSpecsLogService
  • Method Details

    • generateFileName

      String generateFileName(@NotNull @NotNull List<? extends CommitContext> commits)
      Generate log file name
      Parameters:
      commits - associated with Bamboo Specs processing
      Returns:
    • createBambooSpecLogFile

      Path createBambooSpecLogFile(long repositoryId, @NotNull @NotNull String logFilename) throws IOException
      Create log file for Bamboo Specs execution.
      Parameters:
      repositoryId - root repository id
      logFilename - log file name
      Throws:
      IOException - if can't create Bamboo Specs log folder
    • getBambooSpecsExecutionLogAccessor

      @Nullable @Nullable RepositoryStoredSpecsLogService.RepositoryStoredSpecsLogAccessor getBambooSpecsExecutionLogAccessor(@NotNull @NotNull PlanResultKey planResultKey)
      Provides log file accessor for build result.
      Parameters:
      planResultKey - result key
      Returns:
      file accessor if result key is linked to Bamboo Specs execution.
    • getBambooSpecsExecutionLogFile

      @Nullable @Nullable Path getBambooSpecsExecutionLogFile(@NotNull @NotNull PlanResultKey planResultKey) throws IllegalStateException
      Parameters:
      planResultKey - result key
      Returns:
      log file if result key is linked to Bamboo Specs execution
      Throws:
      IllegalStateException - if plan result doesn't have associated commits
    • getBambooSpecsExecutionLogFile

      @Nullable @Nullable Path getBambooSpecsExecutionLogFile(long repositoryId, @NotNull @NotNull String changesetId)
      Parameters:
      repositoryId - id of Bamboo repository
      changesetId - changeset id
      Returns:
      log file if the changeset in the repository is linked to Bamboo Specs execution failure
    • getBambooSpecsExecutionLogFile

      @Nullable @Nullable Path getBambooSpecsExecutionLogFile(@NotNull @NotNull VcsLocationBambooSpecsState bambooSpecsState)
      Returns:
      log file
    • getChangeSetForFilename

      @NotNull @NotNull String getChangeSetForFilename(@NotNull @NotNull List<? extends CommitContext> commits)
      Returns:
      commit which might be used for log filename.
    • generateSpecsLogsUrl

      String generateSpecsLogsUrl(long repositoryId, @NotNull @NotNull String logFilename, @Nullable @Nullable String referrer)
      Returns:
      relative URL for Bamboo Specs execution log file