Class BambooYamlOverriderImpl
- java.lang.Object
-
- com.atlassian.bamboo.configuration.external.yaml.override.BambooYamlOverriderImpl
-
- All Implemented Interfaces:
BambooYamlOverrider
public class BambooYamlOverriderImpl extends Object implements BambooYamlOverrider
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.common.collect.ImmutableList<String>
invalidKeys
static com.google.common.collect.ImmutableList<String>
validKeys
-
Constructor Summary
Constructors Constructor Description BambooYamlOverriderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
overrideMatchedBranch(@NotNull Map<String,Object> rawYamlStructure, @NotNull VcsBranchDefinition vcsBranchDefinition, @NotNull RssExecutionOutputHandler stdout)
Handles the `branch-overrides` tag in YAML v2
-
-
-
Method Detail
-
overrideMatchedBranch
public Map<String,Object> overrideMatchedBranch(@NotNull @NotNull Map<String,Object> rawYamlStructure, @NotNull @NotNull VcsBranchDefinition vcsBranchDefinition, @NotNull @NotNull RssExecutionOutputHandler stdout) throws YamlSpecsValidationException
Description copied from interface:BambooYamlOverrider
Handles the `branch-overrides` tag in YAML v2- Specified by:
overrideMatchedBranch
in interfaceBambooYamlOverrider
- Parameters:
rawYamlStructure
- YAML structure with potential branch-overridevcsBranchDefinition
- The current branch we are evaluating YAML Specsstdout
- output handler for logging execution information- Returns:
- override version of the YAML on a given branch
- Throws:
YamlSpecsValidationException
- if there are invalid structures in YAML
-
-