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
Formatting
For more information about formatting options, see Formatting.
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
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
- csph deployments builds — manage a deployment's builds
- csph deployments builds create — start a build of a deployment
- csph deployments builds list — list a deployment's builds
- csph deployments builds get — show a build
- csph deployments builds cancel — cancel a running build
- csph deployments builds approve — approve a build waiting for approval, so it deploys