Interface YamlSpecsImportService
- All Known Implementing Classes:
YamlSpecsImportServiceImpl
public interface YamlSpecsImportService
Service for importing configuration from Yaml Specs
-
Method Summary
Modifier and TypeMethodDescriptionboolean
processSimplifiedYaml
(SpecsConsumer specsConsumer, VcsRepositoryData repository, VcsBambooSpecsSource specsSource, Path yamlFile, Path workingDir, RssPermissions rssPermissions, List<CommitContext> commits, RssExecutionOutputHandler stdout, String logFilename) Import configuration from Yaml Specsvoid
validateYaml
(@NotNull String yaml, @NotNull VcsRepositoryData repository) Validate Bamboo Yaml Specs.
-
Method Details
-
processSimplifiedYaml
boolean processSimplifiedYaml(SpecsConsumer specsConsumer, VcsRepositoryData repository, VcsBambooSpecsSource specsSource, Path yamlFile, Path workingDir, RssPermissions rssPermissions, List<CommitContext> commits, RssExecutionOutputHandler stdout, String logFilename) throws IOException Import configuration from Yaml Specs- Parameters:
specsConsumer
- consumer used to import configuration from Yaml Specsrepository
- repository from which specs have been checked outspecsSource
- specs state for current executionyamlFile
- YAML file which contain root documents of Yaml SpecsworkingDir
- repository working directoryrssPermissions
- rss permissions forrepository
commits
- a list of commits related to Bamboo Specs, which occurred since last executionstdout
- output handler for logging execution informationlogFilename
- name of the log file- Returns:
- true if Specs have been successfully imported, false otherwise
- Throws:
IOException
-
validateYaml
void validateYaml(@NotNull @NotNull String yaml, @NotNull @NotNull VcsRepositoryData repository) throws YamlSpecsValidationException Validate Bamboo Yaml Specs. If successful methods returns nothing, otherwise the is thrown.- Parameters:
yaml
- yaml specs represented as a plain stringrepository
- repository associated with given specs- Throws:
YamlSpecsValidationException
- Since:
- 9.1
-