You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Setup job is only created when `on:` filters or `setup:` steps are configured. When both are present, the gate step runs first — `setup:` steps are conditioned on the gate passing.
Runs as a **separate job** before the Setup job's gate step. Use for infrastructure provisioning or external service preparation:
323
+
Runs in the **Setup job** (a separate job that executes before the Agent job). When `on:` filters are configured, the gate step runs first and `setup:` steps are automatically conditioned on the gate passing — they are skipped if the trigger doesn't match your filters. When no filters are configured, `setup:` steps run unconditionally. Use for pre-flight infrastructure or workspace preparation the agent job depends on:
323
324
324
325
```yaml
325
326
setup:
@@ -349,7 +350,8 @@ Teardown steps run even if the agent or executor jobs fail (condition: `always()
349
350
350
351
### Job Conditions
351
352
352
-
- **`setup`** and inline **`steps`** run unconditionally (subject to gate filters)
353
+
- **`setup`** steps run unconditionally when no filters are configured; when `on:` filters are active, they are conditioned on the gate passing
354
+
- **`steps`** (inline pre-agent) run unconditionally within the Agent job
353
355
- **`post-steps`** run only if the agent job reaches that phase (condition: `always()` within the job)
354
356
- **`teardown`** runs unconditionally after the executor job completes (condition: `always()`)
0 commit comments