Skip to content

Commit

Permalink
fix(pipeline-templates): Fix trigger merging when hydrating templates. (
Browse files Browse the repository at this point in the history
  • Loading branch information
jtk54 authored Mar 22, 2018
1 parent 4af35a7 commit 80a9f75
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ private void applyConfigurations(PipelineConfiguration configuration, Map<String
if (configuration.getTriggers() != null && !configuration.getTriggers().isEmpty()) {
pipeline.put(
"triggers",
TemplateMerge.mergeNamedContent(
TemplateMerge.mergeDistinct(
pipelineTemplateObjectMapper.convertValue(pipeline.get("triggers"), new TypeReference<List<NamedHashMap>>() {}),
configuration.getTriggers()
)
Expand Down

0 comments on commit 80a9f75

Please sign in to comment.