API

RunJob

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/ci/pipelines/{pipeline_id}/runs/{run_id}/jobs create Success
GET /api/v1/ci/pipelines/{pipeline_id}/runs/{run_id}/jobs/{id} load CI job catalog
GET /api/v1/ci/pipelines/{pipeline_id}/runs/{run_id}/jobs load Success

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

run_job, err := client.RunJob(nil).Load(map[string]any{"pipeline_id": "example", "run_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(run_job)
created, err := client.RunJob(nil).Create(map[string]any{"pipeline_id": "example", "run_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)

Lua

Construct client as shown in the Lua setup, then call the operations:

local run_job, err = client:RunJob():load({ pipeline_id = "example", run_id = "example" })
local created, err = client:RunJob():create({ pipeline_id = "example", run_id = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$run_job = $client->RunJob()->load(["pipeline_id" => "example", "run_id" => "example"]);
$created = $client->RunJob()->create(["pipeline_id" => "example", "run_id" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

run_job = client.RunJob().load({"pipeline_id": "example", "run_id": "example"})
created = client.RunJob().create({ "pipeline_id": "example", "run_id": "example" })

Ruby

Construct client as shown in the Ruby setup, then call the operations:

run_job = client.RunJob.load({ "pipeline_id" => "example", "run_id" => "example" })
created = client.RunJob.create({ "pipeline_id" => "example", "run_id" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const run_job = await client.RunJob().load({ pipeline_id: "example", run_id: "example" })
const created = await client.RunJob().create({ pipeline_id: "example", run_id: "example" })

Fields

Field Type Required Description
active boolean Yes Active
allow_failure boolean Yes Allow Failure
cache_archive_observations one,object,null No Bounded server response history; it does not confirm runner extraction or test-result reuse.
ci_pipeline_run_id string Yes Ci Pipeline Run Id
ci_runner_id one,string,null Yes Ci Runner Id
created_at string Yes Created At
dependencies_csv one,string,null Yes Dependencies Csv
display_id integer Yes Display Id
environment_csv one,string,null Yes Environment Csv
execution_order integer Yes Execution Order
execution_profile one,string,null No Execution Profile
exit_code one,integer,null Yes Exit Code
failed boolean Yes Failed
finished_at one,string,null Yes Finished At
id string Yes Id
kind string Yes Kind
log_chunks array Yes Log Chunks
name string Yes Name
number integer Yes Number
organization_id string Yes Organization Id
queued_at one,string,null Yes Queued At
reconciliation_id one,string,null No Reconciliation Id
retry_number integer Yes Retry Number
reuse one,object,null No Reuse
runner_label_selector one,string,null Yes Runner Label Selector
slug string Yes Slug
started_at one,string,null Yes Started At
status string Yes Status
status_label string Yes Status Label
status_state string Yes Status State
status_tone string Yes Status Tone
steps array Yes Steps
timeout_seconds one,integer,null Yes Timeout Seconds
updated_at string Yes Updated At

create

POST /api/v1/ci/pipelines/{pipeline_id}/runs/{run_id}/jobs

Operation ID: post_api_v1_ci_pipelines_pipeline_id_runs_run_id_jobs.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
pipeline_id path string Yes
run_id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

load

GET /api/v1/ci/pipelines/{pipeline_id}/runs/{run_id}/jobs/{id}

Operation ID: api_v1_pipeline_run_job.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
pipeline_id path string Yes
run_id path string Yes
id path string Yes

Responses

200: CI job catalog

application/json

Property Type Required Description
job object and object Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

GET /api/v1/ci/pipelines/{pipeline_id}/runs/{run_id}/jobs

Operation ID: api_v1_pipeline_run_jobs.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
pipeline_id path string Yes
run_id path string Yes

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway