Class RepositoryStoredSpecsServiceImpl
java.lang.Object
com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl
- All Implemented Interfaces:
RepositoryStoredSpecsService
public class RepositoryStoredSpecsServiceImpl
extends Object
implements RepositoryStoredSpecsService
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRepositoryStoredSpecsServiceImpl(@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) -
Method Summary
Modifier and TypeMethodDescriptionvoidClean up all stale Specs scan statesvoidreportMissingSpecs(@NotNull VcsLocationBambooSpecsState vcsLocationBambooSpecsState, @NotNull VcsRepositoryData vcsRepositoryData, @NotNull String errorMessage, @NotNull List<CommitContext> commits) Record failed specs scan.voidrunBambooSpecs(@NotNull SpecsConsumer specsConsumer, @NotNull VcsRepositoryModuleDescriptor vcsRepositoryModuleDescriptor, @NotNull VcsRepositoryData repository, @NotNull VcsBranch vcsBranch, @NotNull VcsLocationBambooSpecsState specsState, @NotNull List<CommitContext> commits, boolean shouldReportMissingSpecs, @NotNull Runnable onGitCacheAccessComplete) Execute Bamboo Specs and import results
-
Field Details
-
SUBDIR_CHECKOUT
- See Also:
-
-
Constructor Details
-
RepositoryStoredSpecsServiceImpl
@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)
-
-
Method Details
-
runBambooSpecs
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, @NotNull @NotNull Runnable onGitCacheAccessComplete) throws IOException Description copied from interface:RepositoryStoredSpecsServiceExecute Bamboo Specs and import results- Specified by:
runBambooSpecsin interfaceRepositoryStoredSpecsService- Parameters:
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 repositoryonGitCacheAccessComplete- callback to invoke once all the change detection work involving repo cache access is complete- Throws:
IOException
-
cleanUnfinishedSpecsScans
public void cleanUnfinishedSpecsScans()Description copied from interface:RepositoryStoredSpecsServiceClean up all stale Specs scan states- Specified by:
cleanUnfinishedSpecsScansin interfaceRepositoryStoredSpecsService
-
reportMissingSpecs
public void reportMissingSpecs(@NotNull @NotNull VcsLocationBambooSpecsState vcsLocationBambooSpecsState, @NotNull @NotNull VcsRepositoryData vcsRepositoryData, @NotNull @NotNull String errorMessage, @NotNull @NotNull List<CommitContext> commits) Description copied from interface:RepositoryStoredSpecsServiceRecord failed specs scan.- Specified by:
reportMissingSpecsin interfaceRepositoryStoredSpecsService
-