cops bamboo build commands let you inspect Bamboo build results. They call the Bamboo REST API (/rest/api/latest/result).
cops bamboo build latest
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 lastUsage
Arguments
| Argument | Description |
|---|---|
<planKey> | Bamboo plan key (e.g. PROJ-PLAN). Required. |
Flags
Output format:
table, json, or markdown.Disable TLS certificate validation. Use only with self-signed certificates in trusted networks.
Override the active config profile.
Output columns
resultKey, state, lifecycle, startedAt, completedAt| Column | Description |
|---|---|
resultKey | Unique build result key (e.g. PROJ-PLAN-42) |
state | Build state: Successful, Failed, or Unknown |
lifecycle | Build lifecycle state (e.g. Finished) |
startedAt | ISO datetime the build started |
completedAt | ISO datetime the build completed |
Examples
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.Related
cops bamboo plan
Fetch plan details and check plan status.
cops bamboo deploy
Inspect deployment environments and recent results.
