Class YamlSpecsImportServiceImpl
- java.lang.Object
-
- com.atlassian.bamboo.configuration.external.rss.YamlSpecsImportServiceImpl
-
- All Implemented Interfaces:
YamlSpecsImportService
public class YamlSpecsImportServiceImpl extends Object implements YamlSpecsImportService
-
-
Constructor Summary
Constructors Constructor Description YamlSpecsImportServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
processSimplifiedYaml(@NotNull SpecsConsumer specsConsumer, @NotNull VcsRepositoryData repository, @NotNull VcsBambooSpecsSource specsSource, @NotNull Path yamlFile, @NotNull Path workingDir, @NotNull RssPermissions rssPermissions, @NotNull List<CommitContext> commits, @NotNull RssExecutionOutputHandler stdout, @NotNull String logFilename)
Import configuration from Yaml Specsvoid
validateYaml(@NotNull String bambooYaml, @NotNull VcsRepositoryData repository)
Validate Bamboo Yaml Specs.
-
-
-
Method Detail
-
processSimplifiedYaml
public boolean processSimplifiedYaml(@NotNull @NotNull SpecsConsumer specsConsumer, @NotNull @NotNull VcsRepositoryData repository, @NotNull @NotNull VcsBambooSpecsSource specsSource, @NotNull @NotNull Path yamlFile, @NotNull @NotNull Path workingDir, @NotNull @NotNull RssPermissions rssPermissions, @NotNull @NotNull List<CommitContext> commits, @NotNull @NotNull RssExecutionOutputHandler stdout, @NotNull @NotNull String logFilename) throws IOException
Description copied from interface:YamlSpecsImportService
Import configuration from Yaml Specs- Specified by:
processSimplifiedYaml
in interfaceYamlSpecsImportService
- 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
public void validateYaml(@NotNull @NotNull String bambooYaml, @NotNull @NotNull VcsRepositoryData repository) throws YamlSpecsValidationException
Description copied from interface:YamlSpecsImportService
Validate Bamboo Yaml Specs. If successful methods returns nothing, otherwise the is thrown.- Specified by:
validateYaml
in interfaceYamlSpecsImportService
- Parameters:
bambooYaml
- yaml specs represented as a plain stringrepository
- repository associated with given specs- Throws:
YamlSpecsValidationException
-
-