Package io.jenkins.plugins.casc.yaml
Class ErrorOnConflictMergeStrategy
java.lang.Object
io.jenkins.plugins.casc.yaml.ErrorOnConflictMergeStrategy
- All Implemented Interfaces:
MergeStrategy
-
Field Summary
Fields inherited from interface io.jenkins.plugins.casc.yaml.MergeStrategy
DEFAULT_STRATEGY -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ErrorOnConflictMergeStrategy
public ErrorOnConflictMergeStrategy()
-
-
Method Details
-
merge
public void merge(org.yaml.snakeyaml.nodes.Node root, org.yaml.snakeyaml.nodes.Node node, String source) throws ConfiguratorException Description copied from interface:MergeStrategyMerge two nodes which come from two YAML files- Specified by:
mergein 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
Description copied from interface:MergeStrategyName of the merge strategy which must be unique.- Specified by:
getNamein interfaceMergeStrategy- Returns:
- name of the merge strategy
-