Interface RepositoryStoredSpecsLogService
- All Known Implementing Classes:
RepositoryStoredSpecsLogServiceImpl
public interface RepositoryStoredSpecsLogService
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface -
Method Summary
Modifier and TypeMethodDescriptioncreateBambooSpecLogFile(long repositoryId, @NotNull String logFilename) Create log file for Bamboo Specs execution.generateFileName(@NotNull List<? extends CommitContext> commits) Generate log file namegenerateSpecsLogsUrl(long repositoryId, @NotNull String logFilename, @Nullable String referrer) getBambooSpecsExecutionLogAccessor(@NotNull PlanResultKey planResultKey) Provides log file accessor for build result.@Nullable PathgetBambooSpecsExecutionLogFile(long repositoryId, @NotNull String changesetId) @Nullable PathgetBambooSpecsExecutionLogFile(@NotNull PlanResultKey planResultKey) @Nullable PathgetBambooSpecsExecutionLogFile(@NotNull VcsLocationBambooSpecsState bambooSpecsState) @NotNull StringgetChangeSetForFilename(@NotNull List<? extends CommitContext> commits)
-
Method Details
-
generateFileName
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 idlogFilename- 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 repositorychangesetId- 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
-