Class RepositoryStoredSpecsLogServiceImpl
java.lang.Object
com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsLogServiceImpl
- All Implemented Interfaces:
RepositoryStoredSpecsLogService
public class RepositoryStoredSpecsLogServiceImpl
extends Object
implements RepositoryStoredSpecsLogService
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsLogService
RepositoryStoredSpecsLogService.RepositoryStoredSpecsLogAccessor -
Constructor Summary
ConstructorsConstructorDescriptionRepositoryStoredSpecsLogServiceImpl(BootstrapManager bootstrapManager, ResultsSummaryManager resultsManager, BambooSpecsStateDao bambooSpecsStateDao) -
Method Summary
Modifier and TypeMethodDescriptioncreateBambooSpecLogFile(long repositoryId, @NotNull String logFilename) Create log file for Bamboo Specs execution.@NotNull StringgenerateFileName(@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 specsState) @NotNull StringgetChangeSetForFilename(@NotNull List<? extends CommitContext> commits)
-
Constructor Details
-
RepositoryStoredSpecsLogServiceImpl
public RepositoryStoredSpecsLogServiceImpl(BootstrapManager bootstrapManager, ResultsSummaryManager resultsManager, BambooSpecsStateDao bambooSpecsStateDao)
-
-
Method Details
-
createBambooSpecLogFile
Description copied from interface:RepositoryStoredSpecsLogServiceCreate log file for Bamboo Specs execution.- Specified by:
createBambooSpecLogFilein interfaceRepositoryStoredSpecsLogService- Parameters:
repositoryId- root repository idlogFilename- log file name
-
getBambooSpecsExecutionLogAccessor
@Nullable public @Nullable RepositoryStoredSpecsLogService.RepositoryStoredSpecsLogAccessor getBambooSpecsExecutionLogAccessor(@NotNull @NotNull PlanResultKey planResultKey) throws IllegalStateException Description copied from interface:RepositoryStoredSpecsLogServiceProvides log file accessor for build result.- Specified by:
getBambooSpecsExecutionLogAccessorin interfaceRepositoryStoredSpecsLogService- Parameters:
planResultKey- result key- Returns:
- file accessor if result key is linked to Bamboo Specs execution.
- Throws:
IllegalStateException
-
getBambooSpecsExecutionLogFile
@Nullable public @Nullable Path getBambooSpecsExecutionLogFile(@NotNull @NotNull PlanResultKey planResultKey) - Specified by:
getBambooSpecsExecutionLogFilein interfaceRepositoryStoredSpecsLogService- Parameters:
planResultKey- result key- Returns:
- log file if result key is linked to Bamboo Specs execution
-
getBambooSpecsExecutionLogFile
@Nullable public @Nullable Path getBambooSpecsExecutionLogFile(long repositoryId, @NotNull @NotNull String changesetId) - Specified by:
getBambooSpecsExecutionLogFilein interfaceRepositoryStoredSpecsLogService- 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 public @Nullable Path getBambooSpecsExecutionLogFile(@NotNull @NotNull VcsLocationBambooSpecsState specsState) - Specified by:
getBambooSpecsExecutionLogFilein interfaceRepositoryStoredSpecsLogService- Returns:
- log file
-
generateFileName
@NotNull public @NotNull String generateFileName(@NotNull @NotNull List<? extends CommitContext> commits) Description copied from interface:RepositoryStoredSpecsLogServiceGenerate log file name- Specified by:
generateFileNamein interfaceRepositoryStoredSpecsLogService- Parameters:
commits- associated with Bamboo Specs processing- Returns:
-
getChangeSetForFilename
@NotNull public @NotNull String getChangeSetForFilename(@NotNull @NotNull List<? extends CommitContext> commits) - Specified by:
getChangeSetForFilenamein interfaceRepositoryStoredSpecsLogService- Returns:
- commit which might be used for log filename.
-
generateSpecsLogsUrl
public String generateSpecsLogsUrl(long repositoryId, @NotNull @NotNull String logFilename, @Nullable @Nullable String referrer) - Specified by:
generateSpecsLogsUrlin interfaceRepositoryStoredSpecsLogService- Returns:
- relative URL for Bamboo Specs execution log file
-