Loading...
Loading...
Runs Buildkite CI builds against changes in the local working tree. Use when asked to run preflight or run CI.
npx skill4agent add buildkite/skills buildkite-preflight{org}/{pipeline}bk authoriginread_buildswrite_buildsread_pipelinesread_suites# Human-readable output that works well in agent shells
bk preflight --pipeline my-org/my-pipeline --watch --text
# Start a run and return as soon as the build enters the failing state
bk preflight --pipeline my-org/my-pipeline --watch
# Wait for a terminal build state instead of fast-failing
bk preflight --pipeline my-org/my-pipeline --watch --exit-on=build-terminal
# Start the build and exit immediately
bk preflight --pipeline my-org/my-pipeline --no-watch
# Leave the remote preflight branch and build running on early exit
bk preflight --pipeline my-org/my-pipeline --watch --no-cleanup
# Wait for 30s after build completion for Test Engine summaries
bk preflight --pipeline my-org/my-pipeline --watch --await-test-results 30sHEADrefs/heads/bk/preflight/<uuid>originPREFLIGHT=truePREFLIGHT_SOURCE_COMMITPREFLIGHT_SOURCE_BRANCH--no-cleanup--exit-on=build-failing--no-cleanupbuild-failingfailing--exit-on=build-terminal--await-test-resultsbk job log -b <build-number> -p <org>/<pipeline> <job-id>Just the failed jobs from the summary:
bk preflight --pipeline my-org/my-pipeline --watch --json \
| jq -nrc --unbuffered 'inputs | select(.type == "build_summary") | .failed_jobs'
Just the failed tests from the summary:
bk preflight --pipeline my-org/my-pipeline --watch --json \
| jq -nrc --unbuffered 'inputs | select(.type == "build_summary") | .tests.failures'--text--jsonbk# Run preflight and watch until completion
bk preflight --pipeline my-org/my-pipeline --watch
# Run without watching (starts the build and exits)
bk preflight --pipeline my-org/my-pipeline --no-watch
# Skip confirmation prompts (useful in scripts)
bk preflight --pipeline my-org/my-pipeline --watch --yes
# Keep the remote preflight branch after the build finishes
bk preflight --pipeline my-org/my-pipeline --watch --no-cleanup
# Use plain text output in non-interactive environments
bk preflight --pipeline my-org/my-pipeline --watch --text
# Use JSONL output when another tool needs structured events
bk preflight --pipeline my-org/my-pipeline --watch --json
# Wait for 10s for Test Engine results after build completion
bk preflight --pipeline my-org/my-pipeline --watch --await-test-results 10s--pipeline{org slug}/{pipeline slug}# With org prefix (explicit)
bk preflight --pipeline my-org/my-pipeline --watch
# Pipeline slug only (org resolved from bk config)
bk preflight --pipeline my-pipeline --watch| Flag | Short | Default | Description |
|---|---|---|---|
| | - | Pipeline to build ( |
| - | Watch the build until completion | |
| | Exit on | |
| | Polling interval in seconds when watching | |
| | Skip deleting the remote preflight branch after the build finishes | |
| Wait for Test Engine summaries after build completion | ||
| | Use plain text output instead of the interactive UI | |
| | Emit one JSON object per event (JSONL) | |
| | | Skip all confirmation prompts |
| | Disable all interactive prompts | |
| | | Suppress progress output |
| | Disable pager for text output | |
| | Enable debug output for REST API calls |
| Exit Code | Meaning | Action |
|---|---|---|
| All command jobs passed | Proceed with commit/push |
| Generic error | Check error message for details |
| Build completed with failures | Examine failed jobs and fix |
| Build incomplete but failures observed | Build still running; failures already detected |
| Build incomplete (scheduled/running/blocked) | Build hasn't finished yet |
| Unknown build state | Investigate the build on Buildkite |
| User aborted (Ctrl+C) | Re-run when ready |
bk build viewbk preflight --no-cleanupbk preflight --pipeline my-org/my-pipeline --watch --no-cleanup --textbk preflightfailing--exit-on=build-failing--no-cleanupbk build viewbk build view <build-number> -p my-org/my-pipeline --textbk preflight cleanup --pipeline my-org/my-pipeline --preflight-uuid <uuid> --yes --textbk preflight cleanup