Interface RepositoryStoredSpecsLogService
-
- All Known Implementing Classes:
RepositoryStoredSpecsLogServiceImpl
public interface RepositoryStoredSpecsLogService
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
RepositoryStoredSpecsLogService.RepositoryStoredSpecsLogAccessor
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Path
createBambooSpecLogFile(long repositoryId, @NotNull String logFilename)
Create log file for Bamboo Specs execution.String
generateFileName(@NotNull List<? extends CommitContext> commits)
Generate log file nameString
generateSpecsLogsUrl(long repositoryId, @NotNull String logFilename, @Nullable String referrer)
@Nullable RepositoryStoredSpecsLogService.RepositoryStoredSpecsLogAccessor
getBambooSpecsExecutionLogAccessor(@NotNull PlanResultKey planResultKey)
Provides log file accessor for build result.@Nullable Path
getBambooSpecsExecutionLogFile(long repositoryId, @NotNull String changesetId)
@Nullable Path
getBambooSpecsExecutionLogFile(@NotNull PlanResultKey planResultKey)
@Nullable Path
getBambooSpecsExecutionLogFile(@NotNull VcsLocationBambooSpecsState bambooSpecsState)
@NotNull String
getChangeSetForFilename(@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.
-
-