Skip to main content

reject

reject a build waiting for approval, so it doesn't deploy

❌ Reject a build waiting for approval, so it doesn't deploy.

A deployment whose deploy policy is "Require approval" stops each finished build at awaiting_approval until a project admin or owner decides it. Rejecting ends the build without deploying it; the running version keeps running. --reason is required and shown to project members on the build. The rejection is recorded in the audit log.

It asks for confirmation first; --yes skips the question. Without a terminal (CI, a pipe, --no-input) it refuses to run unless --yes is given.

Usage​

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

Options​

Command Specific​

--account <string>
account ID
--deployment <string>
deployment ID (required)
--reason <string>
why, shown to project members on the build (required, up to 500 characters)

-y, --yes

skip the confirmation prompt

Formatting​

For more information about formatting options, see Formatting.

-o, --output <string>

output format: [table|plain|csv|json|yaml]

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​

# reject a waiting build with a reason (asks first)
> csph deployment builds reject <build-id> --deployment <deployment-id> --reason "Missing the migration for the orders table"

# reject without asking
> csph deployment builds reject <build-id> --deployment <deployment-id> --reason "Wrong branch" --yes

See also​