Interface RepositoryStoredSpecsLogService
-
- All Known Implementing Classes:
RepositoryStoredSpecsLogServiceImpl
public interface RepositoryStoredSpecsLogService
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceRepositoryStoredSpecsLogService.RepositoryStoredSpecsLogAccessor
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PathcreateBambooSpecLogFile(long repositoryId, @NotNull String logFilename)Create log file for Bamboo Specs execution.StringgenerateFileName(@NotNull List<? extends CommitContext> commits)Generate log file nameStringgenerateSpecsLogsUrl(long repositoryId, @NotNull String logFilename, @Nullable String referrer)@Nullable RepositoryStoredSpecsLogService.RepositoryStoredSpecsLogAccessorgetBambooSpecsExecutionLogAccessor(@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 Detail
-
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 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.
-
-