Class BambooYamlVersion1ConverterImpl
java.lang.Object
com.atlassian.bamboo.configuration.external.yaml.format.BambooYamlVersion1ConverterImpl
- All Implemented Interfaces:
BambooYamlVersion1Converter
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Default interpreter, if user provided none in YAML v1 document. -
Constructor Summary
-
Method Summary
-
Field Details
-
DEFAULT_SCRIPT_INTERPRETER
Default interpreter, if user provided none in YAML v1 document. Must exist on the list ofALLOWED_SCRIPT_INTERPRETERS
.- See Also:
-
-
Constructor Details
-
BambooYamlVersion1ConverterImpl
-
-
Method Details
-
convertToYamlVersion2
@NotNull public @NotNull Map<String,Object> convertToYamlVersion2(@NotNull @NotNull Map<String, Object> rawYaml1Structure) throws YamlSpecsValidationExceptionDescription copied from interface:BambooYamlVersion1Converter
Converts the given structure of a YAML document from version 1 to 2.- Specified by:
convertToYamlVersion2
in interfaceBambooYamlVersion1Converter
- Parameters:
rawYaml1Structure
- structure of a YAML document in version 1.- Returns:
- structure of a YAML document in version 2.
- Throws:
YamlSpecsValidationException
- if the given YAML structure is invalid- See Also:
-