Interface YamlSpecsImportService
-
- All Known Implementing Classes:
YamlSpecsImportServiceImpl
public interface YamlSpecsImportServiceService for importing configuration from Yaml Specs
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanprocessSimplifiedYaml(SpecsConsumer specsConsumer, VcsRepositoryData repository, VcsBambooSpecsSource specsSource, Path yamlFile, Path workingDir, RssPermissions rssPermissions, List<CommitContext> commits, RssExecutionOutputHandler stdout, String logFilename)Import configuration from Yaml SpecsvoidvalidateYaml(@NotNull String yaml, @NotNull VcsRepositoryData repository)Validate Bamboo Yaml Specs.
-
-
-
Method Detail
-
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 forrepositorycommits- 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 YamlSpecsValidationExceptionValidate 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
-
-