YAML for Early Exit
End the run successfully at this point. The remaining actions are skipped and the ON_SUCCESS actions run. Use trigger conditions to decide when the run ends early.
YAML examples for Early Exit
End the run early on production
yaml
- action: "Skip tests on production"
type: "EARLY_EXIT"
trigger_time: "ON_EVERY_EXECUTION"
reason: "Tests do not run on $BUDDY_RUN_ENV"
trigger_conditions:
- trigger_condition: "VAR_IS"
trigger_variable_key: "BUDDY_RUN_ENV"
trigger_variable_value: "production"
End the run early
yaml
- action: "End the run"
type: "EARLY_EXIT"
reason: "Nothing more to do"