Class YamlSpecsImportServiceImpl

java.lang.Object
com.atlassian.bamboo.configuration.external.rss.YamlSpecsImportServiceImpl
All Implemented Interfaces:
YamlSpecsImportService

public class YamlSpecsImportServiceImpl extends Object implements YamlSpecsImportService
  • Constructor Details

    • YamlSpecsImportServiceImpl

      public YamlSpecsImportServiceImpl()
  • Method Details

    • 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 interface YamlSpecsImportService
      Parameters:
      specsConsumer - consumer used to import configuration from Yaml Specs
      repository - repository from which specs have been checked out
      specsSource - specs state for current execution
      yamlFile - YAML file which contain root documents of Yaml Specs
      workingDir - repository working directory
      rssPermissions - rss permissions for repository
      commits - a list of commits related to Bamboo Specs, which occurred since last execution
      stdout - output handler for logging execution information
      logFilename - 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 interface YamlSpecsImportService
      Parameters:
      bambooYaml - yaml specs represented as a plain string
      repository - repository associated with given specs
      Throws:
      YamlSpecsValidationException