Interface BambooYamlParser
-
- All Known Implementing Classes:
BambooYamlParserImpl
public interface BambooYamlParserParser for simplified Bamboo YAML documents.- See Also:
BambooYamlDefinition
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull BambooYamlDeploymentDefinitionparseDeployment(@NotNull Map<String,Object> yamlStructure, @NotNull BambooYamlVersion yamlVersion, @NotNull VcsRepositoryData repository)Constructs an instance ofBambooYamlDeploymentDefinitionbased on the given YAML structure.@NotNull BambooYamlDeploymentPermissionsDefinitionparseDeploymentPermissions(Map<String,Object> yamlStructure, BambooYamlVersion yamlVersion)Constructs an instance ofBambooYamlDeploymentPermissionsDefinitionbased on the given YAML structure.@NotNull BambooYamlPlanDefinitionparsePlan(@NotNull Map<String,Object> yamlStructure, @NotNull BambooYamlVersion yamlVersion, @NotNull VcsRepositoryData repository, @NotNull RssExecutionOutputHandler stdout)Constructs an instance ofBambooYamlPlanDefinitionbased on the given YAML structure.@NotNull BambooYamlPlanPermissionsDefinitionparsePlanPermissions(Map<String,Object> yamlStructure, BambooYamlVersion yamlVersion)Constructs an instance ofBambooYamlPlanPermissionsDefinitionbased on the given YAML structure.
-
-
-
Method Detail
-
parsePlan
@NotNull @NotNull BambooYamlPlanDefinition parsePlan(@NotNull @NotNull Map<String,Object> yamlStructure, @NotNull @NotNull BambooYamlVersion yamlVersion, @NotNull @NotNull VcsRepositoryData repository, @NotNull @NotNull RssExecutionOutputHandler stdout) throws YamlSpecsValidationException
Constructs an instance ofBambooYamlPlanDefinitionbased on the given YAML structure. This method will run basic validation, e.g. that types in the YAML document match.- Parameters:
yamlStructure- a single YAML document converted into aMapyamlVersion- YAML format versionrepository- the VCS where the YAML is fromstdout- output handler for logging execution information- Returns:
- parsed plan properties defined in the document
- Throws:
YamlSpecsValidationException- if the passed YAML document is not a valid plan definition
-
parseDeployment
@NotNull @NotNull BambooYamlDeploymentDefinition parseDeployment(@NotNull @NotNull Map<String,Object> yamlStructure, @NotNull @NotNull BambooYamlVersion yamlVersion, @NotNull @NotNull VcsRepositoryData repository) throws YamlSpecsValidationException
Constructs an instance ofBambooYamlDeploymentDefinitionbased on the given YAML structure. This method will run basic validation, e.g. that types in the YAML document match.- Parameters:
yamlStructure- a single YAML document converted into aMapyamlVersion- YAML format version- Returns:
- parsed deployment project properties defined in the document
- Throws:
YamlSpecsValidationException- if the passed YAML document is not a valid deployment project definition
-
parseDeploymentPermissions
@NotNull @NotNull BambooYamlDeploymentPermissionsDefinition parseDeploymentPermissions(Map<String,Object> yamlStructure, BambooYamlVersion yamlVersion) throws YamlSpecsValidationException
Constructs an instance ofBambooYamlDeploymentPermissionsDefinitionbased on the given YAML structure. This method will run basic validation, e.g. that types in the YAML document match.- Parameters:
yamlStructure- a single YAML document converted into aMapyamlVersion- YAML format version- Returns:
- parsed deployment project permissions properties defined in the document
- Throws:
YamlSpecsValidationException- if the passed YAML document is not a valid deployment project permissions definition
-
parsePlanPermissions
@NotNull @NotNull BambooYamlPlanPermissionsDefinition parsePlanPermissions(Map<String,Object> yamlStructure, BambooYamlVersion yamlVersion) throws YamlSpecsValidationException
Constructs an instance ofBambooYamlPlanPermissionsDefinitionbased on the given YAML structure. This method will run basic validation, e.g. that types in the YAML document match.- Parameters:
yamlStructure- a single YAML document converted into aMapyamlVersion- YAML format version- Returns:
- parsed plan permissions properties defined in the document
- Throws:
YamlSpecsValidationException- if the passed YAML document is not a valid plan permissions definition
-
-