跳到主要内容

Run Next Pipeline with YAML

List of YAML parameters and examples for the "Run Next Pipeline" action

YAML parameters for Run Next Pipeline

名称类型描述
action
必填
StringThe ID of the action.
type
必填
StringThe type of the action. Should be set to RUN_NEXT_PIPELINE.
next_pipeline_id
必填
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
必填
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
必填
StringThe name of the next pipeline that will be executed. Not required if next_pipeline_id is set instead.
revision
必填
StringCan be one of HEAD or INHERIT.
commentStringThe next pipeline execution comment.

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