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 Modifier and Type Field Description static StringSUBDIR_CHECKOUT
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanUnfinishedSpecsScans()Clean 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)Execute Bamboo Specs and import results
-
-
-
Field Detail
-
SUBDIR_CHECKOUT
public static final String SUBDIR_CHECKOUT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 Detail
-
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) throws IOExceptionDescription 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 repository- 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
-
-