Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
pipeline-trigger-merge pipeline-trigger-merge
Merge a pipeline spec and a list of triggers (files or directories) to create a codefresh full pipeline. Directories are processed recursively. Unknown files are simply ignored.
arguments
MergeTriggersIntoPipeline:
title: Merge the triggers into the pipeline spec
type: pipeline-trigger-merge
arguments:
SPEC: spec.yml
TRIGGERS: trig1.yml ./trigger_dir trig2.yml
MergeTriggersIntoPipelines:
title: Merge the triggers into the pipeline spec(s)
type: pipeline-trigger-merge
working_directory: '${{Clone}}'
arguments:
SPEC: spec.yml
ONLY_CHANGED: true
TRIGGERS_SUBDIR: triggers