public class RepositoryStoredSpecsServiceImpl extends Object implements RepositoryStoredSpecsService
Modifier and Type | Field and Description |
---|---|
static String |
SUBDIR_CHECKOUT |
Constructor and Description |
---|
RepositoryStoredSpecsServiceImpl(@NotNull AdministrationConfigurationAccessor administrationConfigurationAccessor,
@NotNull BambooSpecsManager bambooSpecsManager,
@NotNull CustomVariableContext customVariableContext,
@NotNull com.atlassian.event.api.EventPublisher eventPublisher,
@NotNull FeatureManager featureManager,
@NotNull I18nBeanFactory i18nBeanFactory,
@NotNull JavaSpecsImportService javaSpecsImportService,
@NotNull com.atlassian.plugin.PluginAccessor pluginAccessor,
@NotNull RepositoryDefinitionManager repositoryDefinitionManager,
@NotNull RepositoryStoredSpecsLogService repositoryStoredSpecsLogService,
@NotNull RepositoryStoredSpecsResultHelper repositoryStoredSpecsResultService,
@NotNull RssExecutionDirectoryManager rssExecutionDirectoryManager,
@NotNull RssPermissionsService rssPermissionsService,
@NotNull YamlSpecsImportService yamlSpecsImportService,
@NotNull AuditLogService auditLogService) |
Modifier and Type | Method and Description |
---|---|
void |
cleanUnfinishedSpecsScans()
Clean up all stale Specs scan states
|
void |
reportMissingSpecs(@NotNull VcsLocationBambooSpecsState vcsLocationBambooSpecsState,
@NotNull VcsRepositoryData vcsRepositoryData,
@NotNull String errorMessage,
@NotNull List<CommitContext> commits)
Record failed specs scan.
|
void |
runBambooSpecs(@NotNull SpecsConsumer specsConsumer,
@NotNull VcsRepositoryModuleDescriptor vcsRepositoryModuleDescriptor,
@NotNull VcsRepositoryData repository,
@NotNull VcsBranch vcsBranch,
@NotNull VcsLocationBambooSpecsState specsState,
@NotNull List<CommitContext> commits,
boolean shouldReportMissingSpecs)
Execute Bamboo Specs and import results
|
public static final String SUBDIR_CHECKOUT
@Inject public RepositoryStoredSpecsServiceImpl(@NotNull @NotNull AdministrationConfigurationAccessor administrationConfigurationAccessor, @NotNull @NotNull BambooSpecsManager bambooSpecsManager, @NotNull @NotNull CustomVariableContext customVariableContext, @NotNull @NotNull com.atlassian.event.api.EventPublisher eventPublisher, @NotNull @NotNull FeatureManager featureManager, @NotNull @NotNull I18nBeanFactory i18nBeanFactory, @NotNull @NotNull JavaSpecsImportService javaSpecsImportService, @NotNull @NotNull com.atlassian.plugin.PluginAccessor pluginAccessor, @NotNull @NotNull RepositoryDefinitionManager repositoryDefinitionManager, @NotNull @NotNull RepositoryStoredSpecsLogService repositoryStoredSpecsLogService, @NotNull @NotNull RepositoryStoredSpecsResultHelper repositoryStoredSpecsResultService, @NotNull @NotNull RssExecutionDirectoryManager rssExecutionDirectoryManager, @NotNull @NotNull RssPermissionsService rssPermissionsService, @NotNull @NotNull YamlSpecsImportService yamlSpecsImportService, @NotNull @NotNull AuditLogService auditLogService)
public void runBambooSpecs(@NotNull @NotNull SpecsConsumer specsConsumer, @NotNull @NotNull VcsRepositoryModuleDescriptor vcsRepositoryModuleDescriptor, @NotNull @NotNull VcsRepositoryData repository, @NotNull @NotNull VcsBranch vcsBranch, @NotNull @NotNull VcsLocationBambooSpecsState specsState, @NotNull @NotNull List<CommitContext> commits, boolean shouldReportMissingSpecs) throws IOException
RepositoryStoredSpecsService
runBambooSpecs
in interface RepositoryStoredSpecsService
specsConsumer
- consumer used to import execution resultsvcsRepositoryModuleDescriptor
- repository modulerepository
- repository to checkoutvcsBranch
- vcs branch to checkoutspecsState
- specs state for current executioncommits
- a list of commits related to Bamboo Specs, which occurred since last executionshouldReportMissingSpecs
- whether to notify user in case Specs were not found in repositoryIOException
public void cleanUnfinishedSpecsScans()
RepositoryStoredSpecsService
cleanUnfinishedSpecsScans
in interface RepositoryStoredSpecsService
public void reportMissingSpecs(@NotNull @NotNull VcsLocationBambooSpecsState vcsLocationBambooSpecsState, @NotNull @NotNull VcsRepositoryData vcsRepositoryData, @NotNull @NotNull String errorMessage, @NotNull @NotNull List<CommitContext> commits)
RepositoryStoredSpecsService
reportMissingSpecs
in interface RepositoryStoredSpecsService
Copyright © 2023 Atlassian Software Systems Pty Ltd. All rights reserved.