Use case
Determining which options and flags to use when using the Codefresh Run Pipeline CLI command to start a Pipeline.
codefresh run $PIPELINE_NAME -b=$BRANCH_NAME -t=$TRIGGER_NAME -d
codefresh run $PIPELINE_NAME -b=$BRANCH_NAME -d
Solution:
When your workflow is configured like this:
And you want to run this pipeline from CLI, you have to provide both the branch name (-b) as well as the trigger name (-t). Without a trigger specified, Codefresh does not know from which branch it should start the build.
On the other hand, if you select static branch instead of AUTO SELECT BRANCH, you can run pipeline via CLI with just the "-b" (branch) option.