HomeGuidesAPI ReferenceChangelog
Log In
API Reference

Deployment

A deployment attempt and its progress.

Attributes

NameTypeDescription
deployment_iduuid.UUIDtechnical id, what the front-end polls on.
pipeline_keystrpipeline being deployed.
pipeline_iduuid.UUIDits technical id.
sourcestrref the user deployed FROM (feature/..., master, release/...).
releasestrthe release ref this deployment produces or reuses.
shastrcommit the release resolves to — what actually runs.
packagingstr'image' (frozen artifact) or 'release' (run from the branch).
image_idstrbuilt image, when packaging='image'.
trigger_iduuid.UUIDschedule created or updated at the end.
statusDeploymentStatusoverall state — pending / deploying / deployed / paused / failed. Deliberately not "running" or "completed": a user reads those as "is my pipeline executing", which is a different question entirely.
stepslist[detail] in execution order.
errorstrfailure reason when status is FAILED.
manifestdictthe deploy request as executed.
created_bystremail of the user who launched it.
createdDateinttimestamp ms.
updatedDateinttimestamp ms.

Methods

api_id()

return current object id on Web API format.

api_key()

return current object logical unique key (e.g. hardware_id, key, name).

returns None if the entity has no logical key.

endpoint()

return endpoint name used to contact backend.

from_json()

load the object from a dict originating of a JSON format.

NameTypeDefaultDescription
objobject to load information from.

is_done()

True when a step needs no further work — completed or not planned.

NameTypeDefaultDescription
stepDeploymentStep

set_id()

specify the id_value neutrally

NameTypeDefaultDescription
id_value
return:

set_step()

Record a step's outcome, replacing any previous entry for it so a retry

does not append duplicates.

NameTypeDefaultDescription
stepDeploymentStep
statusStepStatus
detailNone

step_status()

NameTypeDefaultDescription
stepDeploymentStep

to_dict()

Serialize the Deployment. Alias of :meth:to_json, which is the

canonical implementation here — the DTO convention accepts either

spelling, and the client calls to_dict.

to_json()

transform current object into a dict that could be JSONIFY.

NameTypeDefaultDescription
targetstrNone
return: dumpable dict.