Package io.jenkins.plugins.casc.yaml
Interface MergeStrategy
- All Known Implementing Classes:
ErrorOnConflictMergeStrategy
,OverrideMergeStrategy
public interface MergeStrategy
YAML merge strategy between multiple files
-
Field Summary
-
Method Summary
-
Field Details
-
DEFAULT_STRATEGY
- See Also:
-
-
Method Details
-
merge
void merge(org.yaml.snakeyaml.nodes.Node firstNode, org.yaml.snakeyaml.nodes.Node secondNode, String source) throws ConfiguratorException Merge two nodes which come from two YAML files- Parameters:
firstNode
- the first node of a node listsecondNode
- the second node of a node listsource
- is the source of node- Throws:
ConfiguratorException
- if the merge fails
-
getName
String getName()Name of the merge strategy which must be unique.- Returns:
- name of the merge strategy
-