Package io.jenkins.plugins.casc.yaml
Class OverrideMergeStrategy
- java.lang.Object
-
- io.jenkins.plugins.casc.yaml.OverrideMergeStrategy
-
- All Implemented Interfaces:
MergeStrategy
@Extension public class OverrideMergeStrategy extends Object implements MergeStrategy
Override the configuration by loading order
-
-
Field Summary
-
Fields inherited from interface io.jenkins.plugins.casc.yaml.MergeStrategy
DEFAULT_STRATEGY
-
-
Constructor Summary
Constructors Constructor Description OverrideMergeStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Name of the merge strategy which must be unique.void
merge(org.yaml.snakeyaml.nodes.Node root, org.yaml.snakeyaml.nodes.Node node, String source)
Merge two nodes which come from two YAML files
-
-
-
Method Detail
-
merge
public void merge(org.yaml.snakeyaml.nodes.Node root, org.yaml.snakeyaml.nodes.Node node, String source) throws ConfiguratorException
Description copied from interface:MergeStrategy
Merge two nodes which come from two YAML files- Specified by:
merge
in interfaceMergeStrategy
- Parameters:
root
- the first node of a node listnode
- the second node of a node listsource
- is the source of node- Throws:
ConfiguratorException
- if the merge fails
-
getName
public String getName()
Description copied from interface:MergeStrategy
Name of the merge strategy which must be unique.- Specified by:
getName
in interfaceMergeStrategy
- Returns:
- name of the merge strategy
-
-