Run commands in sequence
run_seqRun dependent CLI steps in sequence, stopping at the first failure so later build, test, or package steps do not run after an error. Set stopOnError=false to run all steps.
Instructions
Run an ordered list of labeled commands one after another, stopping at the first failure by default. Use for dependent steps (e.g. build then test then package) where order matters and a later step is pointless if an earlier one fails. Unlike batch (parallel), run_seq is sequential and short-circuits; set stopOnError=false to run every step regardless.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | No | Required. Ordered steps to run sequentially | |
| maxLines | No | Max stdout/stderr lines to keep per step. 0 = unlimited. | |
| stopOnError | No | Stop at the first step with a non-zero exit code (default true). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | Yes | ||
| elapsed | Yes | Total wall-clock time in milliseconds | |
| exitCode | Yes | 0 if every step succeeded, else the first failure's code | |
| failedAt | Yes | Index of the first failing step, or null if all passed | |
| retained | No |