Adding stages to YAML pipelines