Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
Dynamically run Codefresh pipelines codefresh-run-dynamic
Accepts a YAML file specifying a list of pipelines and options, and runs them concurrently. You can specify most `codefresh run` options on a per-build basis within the YAML file, including: branch, sha, no_cache, no_cf_cache, reset_volume, variables[], contexts[], skip[], only[], and enable_notifications. See example YAML file: https://github.com/codefresh-io/steps/tree/master/incubating/codefresh-run-dynamic/example_run_list.yaml
arguments
returns
run_cf_pipelines:
title: Start pipelines but don't wait
type: codefresh-run-dynamic
arguments:
RUN_LIST_YAML_FILE: /codefresh/volume/my-pipelines-to-run.yaml
run_cf_pipelines:
title: Start pipelines and wait
type: codefresh-run-dynamic
arguments:
RUN_LIST_YAML_FILE: /codefresh/volume/my-pipelines-to-run.yaml
WAIT: true
run_cf_pipelines:
title: Start pipelines and wait - with extra options
type: codefresh-run-dynamic
arguments:
RUN_LIST_YAML_FILE: /codefresh/volume/my-pipelines-to-run.yaml
WAIT: true
TIMEOUT_MINS: '90'
LOG_INTERVAL_MINS: '30'
LOG_DIRECTORY: /codefresh/volume/my-run-logs