Interface BambooYamlParser
- All Known Implementing Classes:
BambooYamlParserImpl
public interface BambooYamlParser
Parser for simplified Bamboo YAML documents.
- See Also:
-
Method Summary
Modifier and TypeMethodDescription@NotNull BambooYamlDeploymentDefinitionparseDeployment(@NotNull Map<String, Object> yamlStructure, @NotNull BambooYamlVersion yamlVersion, @NotNull VcsRepositoryData repository) Constructs an instance ofBambooYamlDeploymentDefinitionbased on the given YAML structure.parseDeploymentPermissions(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 Details
-
parsePlan
@NotNull @NotNull BambooYamlPlanDefinition parsePlan(@NotNull @NotNull Map<String, Object> yamlStructure, @NotNull @NotNull BambooYamlVersion yamlVersion, @NotNull @NotNull VcsRepositoryData repository, @NotNull @NotNull RssExecutionOutputHandler stdout) throws YamlSpecsValidationExceptionConstructs 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 YamlSpecsValidationExceptionConstructs 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 YamlSpecsValidationExceptionConstructs 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 YamlSpecsValidationExceptionConstructs 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
-