YAML syntax examples

更新时间:
复制 MD 格式

Common examples of YAML syntax for pipeline configuration.

YAML syntax examples

YAML controls the execution conditions and order of jobs in pipelines. The following are common syntax examples:

condition syntax

The condition syntax determines whether a job runs in a pipeline. For more information, see Use the condition syntax to control job execution.

needs syntax

The needs syntax controls the execution order of jobs in a pipeline. For more information, see Control job dependencies with needs.

template syntax

The template syntax dynamically renders YAML, reduces code duplication, and enables flexible orchestration of multiple jobs in a pipeline. For more information, see Use the template syntax to dynamically configure a pipeline.