Skip to main content
The cops bamboo build commands let you inspect Bamboo build results. They call the Bamboo REST API (/rest/api/latest/result).

cops bamboo build latest

Get the latest build result for a Bamboo plan. If no build results are found, the command outputs a message indicating that no results exist and exits with code 0.Alias: cops bamboo build last

Usage

cops bamboo build latest <planKey> [flags]

Arguments

ArgumentDescription
<planKey>Bamboo plan key (e.g. PROJ-PLAN). Required.

Flags

--output
string
default:"table"
Output format: table, json, or markdown.
--insecure
boolean
default:"false"
Disable TLS certificate validation. Use only with self-signed certificates in trusted networks.
--profile
string
Override the active config profile.

Output columns

resultKey, state, lifecycle, startedAt, completedAt
ColumnDescription
resultKeyUnique build result key (e.g. PROJ-PLAN-42)
stateBuild state: Successful, Failed, or Unknown
lifecycleBuild lifecycle state (e.g. Finished)
startedAtISO datetime the build started
completedAtISO datetime the build completed

Examples

cops bamboo build latest PROJ-PLAN
resultKey      state       lifecycle  startedAt             completedAt
─────────────  ──────────  ─────────  ────────────────────  ────────────────────
PROJ-PLAN-42   Successful  Finished   2026-03-19T10:00:00Z  2026-03-19T10:04:22Z
The command fetches the single most recent build result for the plan. Use cops bamboo plan get to check whether the plan is currently enabled and active.

cops bamboo plan

Fetch plan details and check plan status.

cops bamboo deploy

Inspect deployment environments and recent results.

Build docs developers (and LLMs) love