Skip to main content

get

show a build

🏗️ Show one build of a deployment.

Builds belong to a deployment, so pass the deployment with --deployment. Use --output json or yaml for every field, including the failure reason of a failed build.

Usage​

csph deployments builds get <build-id> [flags]

Aliases​

deployments builds get, deployments builds show, deployments build get, deployments build show, deployment builds get, deployment builds show, deployment build get, deployment build show, deploys builds get, deploys builds show, deploys build get, deploys build show

Options​

Command Specific​

--account <string>
account ID
--deployment <string>
deployment ID (required)

Formatting​

For more information about formatting options, see Formatting.

--fields <strings>
output JSON with the specified fields
--jq <string>
filter JSON output with jq expression

-o, --output <string>

output format: [table|plain|csv|json|yaml]
--template <string>
format JSON using a Go template

Available Fields​

approved_at, approved_by, awaiting_approval_at, build_duration_seconds, built_at, cache_hit_ratio, canceled_at, commit_author, commit_message, commit_sha, created_at, declared_build_args, deployed_by, deployment_id, duration_seconds, environment_id, failure_message, failure_reason, finished_at, git_ref, id, image_digest, image_signature, image_size_bytes, manifest, mode, object, pipeline_tier, pre_deploy_command, promoted_from, reject_reason, rejected_at, rejected_by, service_id, source_kind, source_ref, started_at, status, trigger_source

Inherited​

--config <string>
config file (default is $HOME/.config/computesphere/configuration.yaml)
--debug
enable debug logging

-h, --help

show this help message

-i, --interactive

run interactively (prompts, pickers, table browser)
--log-level <string>
log level: [trace|debug|info|warn|error|fatal|panic|disabled||api]
--no-color
disable color output
--no-input
disable interactive mode

Examples​

# show a build
> csph deployment builds get <build-id> --deployment <deployment-id>

# why did it fail?
> csph deployment builds get <build-id> --deployment <deployment-id> -o json --jq '.failure_message'

# the full record as YAML
> csph deployment builds get <build-id> --deployment <deployment-id> --output yaml

# pick the deployment and build interactively
> csph deployment builds get

See also​