Run Next Pipeline with YAML

YAML parameters for Run Next Pipeline

NameTypeDescription
action
Required
StringThe ID of the action.
next_pipeline_id
Required
IntegerThe ID of the next pipeline that will be executed. Not required if both next_project_name and next_pipeline_name are set instead.
next_project_name
Required
StringThe name of the project containing the next pipeline that will be executed. Not required if next_pipeline_id is set instead.
next_pipeline_name
Required
StringThe name of the next pipeline that will be executed. Not required if next_pipeline_id is set instead.
type
Required
StringThe type of the action. Should be set to RUN_NEXT_PIPELINE.
revision
Required
StringCan be one of HEAD or INHERIT.
commentStringThe next pipeline execution comment.
variablesVariable[]The list of variables to set as parameters for the pipeline.
trigger_timeStringSpecifies when the action should be executed. Can be one of ON_EVERY_EXECUTION, ON_FAILURE or ON_BACK_TO_SUCCESS.
trigger_conditionStringDefines when the build action should be run. Can be one of ALWAYS, ON_CHANGE, ON_CHANGE_AT_PATH, VAR_IS, VAR_IS_NOT or VAR_CONTAINS.
trigger_condition_pathsString[]Required when trigger_condition is set to ON_CHANGE_AT_PATH.
trigger_variable_keyStringRequired when trigger_condition is set to VAR_IS, VAR_IS_NOT or VAR_CONTAINS. Defines the name of the desired variable.
trigger_variable_valueStringRequired when trigger_condition is set to VAR_IS, VAR_IS_NOT or VAR_CONTAINS. Defines the value of the desired variable which will be compared with its current value.
disabledBooleanWhen set to true the action is disabled. By default it is set to false.

YAML example for Run Next Pipeline

actions:
- action: "Run backend/dev"
type: "RUN_NEXT_PIPELINE"
comment: "Triggered by $BUDDY_PIPELINE_NAME execution #$BUDDY_EXECUTION_ID"
revision: "HEAD"
next_project_name: "backend"
next_pipeline_name: "dev"
variables:
- key: "version"
value: "$BUDDY_EXECUTION_ID"
encrypted: false