Troupeby AliveDocsSign in

Reference

builds

Builds of a repository ref or an uploaded tarball: probed in a sandbox, planned with a preset, built on a build machine. Index · shared schemas · errors.

ProcedureSummaryRESTMCP toolStability
builds.createStart a build of a git ref (or of a tarball uploaded next): probe, plan with a preset, build in a sandbox, store the artifactsPOST—experimental
builds.getA build: its status, the probed revision, the plan it chose (preset, image digest) and its artifactsGET—experimental
builds.listA project's builds, newest firstGET—experimental
builds.cancelCancel a build: an unfinished one ends canceled and its machine is stopped; a finished one is returned as isPOST—experimental
builds.logsReplay a build's log from since, then follow it until the build endsGET—experimental

builds.create

Start a build of a git ref (or of a tarball uploaded next): probe, plan with a preset, build in a sandbox, store the artifacts

RESTPOST /v1/builds/create (input as a JSON body)
RPC/rpc/v2/builds/create
MCPnot a tool (a cloud platform procedure; the cloud MCP surface is the curated device tools); hints: none
Authbuilds:write
Tenancyproject
Troupe Cloudanswered by the control plane
Stabilityexperimental, since 1.0

Input:

TypeScript
{
  projectId: ProjectId
  source: BuildSourceInput
  appRoot?: RelativePath
  osFamily: BuildOsFamilyIn
  target: BuildTargetIn
  configuration?: BuildConfigurationIn
  preset?: PresetId
  presetOptions?: PresetOptions
  stepOverrides?: StepOverride[]  // ≤ 16 items
  cache?: BuildCacheOptions
  trigger?: BuildTrigger
  timeoutMs?: integer  // 60000–10800000
  signing?: CredentialId | 'none'
  env?: BuildEnvValues
}

Output:

TypeScript
{ build: CloudBuild; upload?: CloudUpload }

Errors: U, NOT_FOUND, ORG_SUSPENDED, PROJECT_SUSPENDED, QUOTA_EXCEEDED, CAPACITY_UNAVAILABLE.

Named types: BuildCacheOptions, BuildConfigurationIn, BuildEnvValues, BuildOsFamilyIn, BuildSourceInput, BuildTargetIn, BuildTrigger, CloudBuild, CloudUpload, CredentialId, PresetId, PresetOptions, ProjectId, RelativePath, StepOverride.

builds.get

A build: its status, the probed revision, the plan it chose (preset, image digest) and its artifacts

RESTGET /v1/builds/get (input as query parameters)
RPC/rpc/v2/builds/get
MCPnot a tool (a cloud platform procedure; the cloud MCP surface is the curated device tools); hints: read-only, idempotent
Authbuilds:read
Tenancyproject
Troupe Cloudanswered by the control plane
Stabilityexperimental, since 1.0

Input:

TypeScript
{ projectId: ProjectId; buildId: BuildId }

Output:

TypeScript
{ build: CloudBuild }

Errors: U, NOT_FOUND.

Named types: BuildId, CloudBuild, ProjectId.

builds.list

A project's builds, newest first

RESTGET /v1/builds/list (input as query parameters)
RPC/rpc/v2/builds/list
MCPnot a tool (a cloud platform procedure; the cloud MCP surface is the curated device tools); hints: read-only, idempotent
Authbuilds:read
Tenancyproject
Troupe Cloudanswered by the control plane
Stabilityexperimental, since 1.0

Input:

TypeScript
{ projectId: ProjectId; limit?: PageLimit; cursor?: PageCursor }

Output:

TypeScript
{ builds: CloudBuild[]; nextCursor?: string }

Errors: U, NOT_FOUND.

Named types: CloudBuild, PageCursor, PageLimit, ProjectId.

builds.cancel

Cancel a build: an unfinished one ends canceled and its machine is stopped; a finished one is returned as is

RESTPOST /v1/builds/cancel (input as a JSON body)
RPC/rpc/v2/builds/cancel
MCPnot a tool (a cloud platform procedure; the cloud MCP surface is the curated device tools); hints: idempotent, destructive
Authbuilds:write
Tenancyproject
Troupe Cloudanswered by the control plane
Stabilityexperimental, since 1.0

Input:

TypeScript
{ projectId: ProjectId; buildId: BuildId }

Output:

TypeScript
{ build: CloudBuild }

Errors: U, NOT_FOUND, CONFLICT.

Named types: BuildId, CloudBuild, ProjectId.

builds.logs

Replay a build's log from since, then follow it until the build ends

RESTGET /v1/builds/logs (input as query parameters)
RPC/rpc/v2/builds/logs
MCPnot a tool (a cloud platform procedure; the cloud MCP surface is the curated device tools); hints: read-only, idempotent
Authbuilds:read
Tenancyproject
Troupe Cloudanswered by the control plane
Stabilityexperimental, since 1.0

Input:

TypeScript
{ projectId: ProjectId; buildId: BuildId; since?: Seq; follow?: boolean }

Output: an event iterator (text/event-stream on REST), each event:

TypeScript
BuildLogLine

Errors: U, NOT_FOUND.

Named types: BuildId, BuildLogLine, ProjectId, Seq.

esc

    Type to search every page, the protocol reference and the cloud API.