Sometimes you would like to create or run test pipelines, following is the few examples of achieving that quickly.
The minimal pipeline specification to create pipeline:
Example script of creating 10 pipelines can be implemented as:
for ID in `seq 1 10`; do
cat << EOF > .minimal.yaml
codefresh create pipeline -f .minimal.yaml
The minimal spec can be also stored in the file and executed, that will not require any project to be created. Following example will create a build and sleep for specific amount of time, allowing you to examine created resources:
$ cat minimal.yaml
- "sleep $TIME"
$ cf run -y minimal.yaml -v TIME=60
See cf_utils repository on more example scripts.