public class RepositoryStoredSpecsServiceImpl extends Object implements RepositoryStoredSpecsService
Modifier and Type | Field and Description |
---|---|
static String |
SUBDIR_CHECKOUT |
Constructor and Description |
---|
RepositoryStoredSpecsServiceImpl(AdministrationConfigurationAccessor administrationConfigurationAccessor,
BambooSpecsManager bambooSpecsManager,
CustomVariableContext customVariableContext,
com.atlassian.event.api.EventPublisher eventPublisher,
FeatureManager featureManager,
I18nBeanFactory i18nBeanFactory,
JavaSpecsImportService javaSpecsImportService,
com.atlassian.plugin.PluginAccessor pluginAccessor,
RepositoryDefinitionManager repositoryDefinitionManager,
RepositoryStoredSpecsLogService repositoryStoredSpecsLogService,
RepositoryStoredSpecsResultHelper repositoryStoredSpecsResultService,
RssExecutionDirectoryManager rssExecutionDirectoryManager,
RssPermissionsService rssPermissionsService,
YamlSpecsImportService yamlSpecsImportService) |
Modifier and Type | Method and Description |
---|---|
void |
cleanUnfinishedSpecsScans()
Clean up all stale Specs scan states
|
void |
reportMissingSpecs(VcsLocationBambooSpecsState vcsLocationBambooSpecsState,
VcsRepositoryData vcsRepositoryData,
String errorMessage,
List<CommitContext> commits)
Record failed specs scan.
|
void |
runBambooSpecs(SpecsConsumer specsConsumer,
VcsRepositoryModuleDescriptor vcsRepositoryModuleDescriptor,
VcsRepositoryData repository,
VcsBranch vcsBranch,
VcsLocationBambooSpecsState specsState,
List<CommitContext> commits,
boolean shouldReportMissingSpecs)
Execute Bamboo Specs and import results
|
public static final String SUBDIR_CHECKOUT
@Inject public 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)
public void runBambooSpecs(@NotNull SpecsConsumer specsConsumer, @NotNull VcsRepositoryModuleDescriptor vcsRepositoryModuleDescriptor, @NotNull VcsRepositoryData repository, @NotNull VcsBranch vcsBranch, @NotNull VcsLocationBambooSpecsState specsState, @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 VcsLocationBambooSpecsState vcsLocationBambooSpecsState, @NotNull VcsRepositoryData vcsRepositoryData, @NotNull String errorMessage, @NotNull List<CommitContext> commits)
RepositoryStoredSpecsService
reportMissingSpecs
in interface RepositoryStoredSpecsService
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.
View cookie preferences