CiPipelineRun
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/{id}/retry |
create |
Existing CI retry for this request |
POST |
/api/v1/ci/pipelines/{pipeline_id}/runs |
create |
Success |
GET |
/api/v1/ci/pipelines/{pipeline_id}/runs/{id} |
load |
CI pipeline run catalog |
GET |
/api/v1/ci/pipelines/{pipeline_id}/runs |
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:
ci_pipeline_run, err := client.CiPipelineRun(nil).Load(map[string]any{"pipeline_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(ci_pipeline_run)
created, err := client.CiPipelineRun(nil).Create(map[string]any{"pipeline_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 ci_pipeline_run, err = client:CiPipelineRun():load({ pipeline_id = "example" })
local created, err = client:CiPipelineRun():create({ pipeline_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$ci_pipeline_run = $client->CiPipelineRun()->load(["pipeline_id" => "example"]);
$created = $client->CiPipelineRun()->create(["pipeline_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
ci_pipeline_run = client.CiPipelineRun().load({"pipeline_id": "example"})
created = client.CiPipelineRun().create({ "pipeline_id": "example" })
Ruby
Construct client as shown in the Ruby setup, then call the operations:
ci_pipeline_run = client.CiPipelineRun.load({ "pipeline_id" => "example" })
created = client.CiPipelineRun.create({ "pipeline_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const ci_pipeline_run = await client.CiPipelineRun().load({ pipeline_id: "example" })
const created = await client.CiPipelineRun().create({ pipeline_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
active |
boolean |
Yes | Active |
canceled_at |
one,string,null |
Yes | Canceled At |
ci_pipeline_id |
string |
Yes | Ci Pipeline Id |
ci_runner_pool_id |
one,string,null |
Yes | Ci Runner Pool Id |
commit_sha |
one,string,null |
Yes | Commit Sha |
concurrency_key |
one,string,null |
Yes | Concurrency Key |
created_at |
string |
Yes | Created At |
creator_user_id |
one,string,null |
Yes | Creator User Id |
display_id |
integer |
Yes | Display Id |
failed |
boolean |
Yes | Failed |
finished_at |
one,string,null |
Yes | Finished At |
hosted_app_id |
one,string,null |
Yes | Hosted App Id |
id |
string |
Yes | Id |
jobs |
array |
Yes | Jobs |
message |
one,string,null |
Yes | Message |
number |
integer |
Yes | Number |
organization_id |
string |
Yes | Organization Id |
parameters_json |
one,string,null |
Yes | Parameters Json |
queued_at |
one,string,null |
Yes | Queued At |
ref_name |
one,string,null |
Yes | Ref Name |
repository_id |
one,string,null |
Yes | Repository Id |
required_capabilities_csv |
one,string,null |
Yes | Required Capabilities Csv |
retry_number |
integer |
Yes | Retry Number |
retryable |
boolean |
Yes | Retryable |
slug |
string |
Yes | Slug |
source_url |
one,string,null |
Yes | Source Url |
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 |
trigger_kind |
string |
Yes | Trigger Kind |
updated_at |
string |
Yes | Updated At |
create
POST /api/v1/ci/pipelines/{pipeline_id}/runs/{id}/retry
Operation ID: retry_api_v1_pipeline_run.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
pipeline_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
request_id |
string |
Yes |
Responses
200: Existing CI retry for this request
application/json
| Property | Type | Required | Description |
|---|---|---|---|
pipeline_run |
object |
Yes | |
pipeline_run.active |
boolean |
Yes | |
pipeline_run.canceled_at |
string (date-time) |
Yes | |
pipeline_run.ci_pipeline_id |
string |
Yes | |
pipeline_run.ci_runner_pool_id |
string |
Yes | |
pipeline_run.commit_sha |
string |
Yes | |
pipeline_run.concurrency_key |
string |
Yes | |
pipeline_run.created_at |
string (date-time) |
Yes | |
pipeline_run.creator_user_id |
string |
Yes | |
pipeline_run.display_id |
integer |
Yes | |
pipeline_run.failed |
boolean |
Yes | |
pipeline_run.finished_at |
string (date-time) |
Yes | |
pipeline_run.hosted_app_id |
string |
Yes | |
pipeline_run.id |
string |
Yes | |
pipeline_run.message |
string |
Yes | |
pipeline_run.number |
integer |
Yes | |
pipeline_run.organization_id |
string |
Yes | |
pipeline_run.parameters_json |
string |
Yes | |
pipeline_run.queued_at |
string (date-time) |
Yes | |
pipeline_run.ref_name |
string |
Yes | |
pipeline_run.repository_id |
string |
Yes | |
pipeline_run.required_capabilities_csv |
string |
Yes | |
pipeline_run.retry_number |
integer |
Yes | |
pipeline_run.retryable |
boolean |
Yes | |
pipeline_run.slug |
string |
Yes | |
pipeline_run.source_url |
string |
Yes | |
pipeline_run.started_at |
string (date-time) |
Yes | |
pipeline_run.status |
string |
Yes | |
pipeline_run.status_label |
string |
Yes | |
pipeline_run.status_state |
enum: active, successful, failed, canceled, blocked, skipped, ... |
Yes | |
pipeline_run.status_tone |
enum: success, danger, warning, default |
Yes | |
pipeline_run.trigger_kind |
string |
Yes | |
pipeline_run.updated_at |
string (date-time) |
Yes |
201: CI retry created
application/json
| Property | Type | Required | Description |
|---|---|---|---|
pipeline_run |
object |
Yes | |
pipeline_run.active |
boolean |
Yes | |
pipeline_run.canceled_at |
string (date-time) |
Yes | |
pipeline_run.ci_pipeline_id |
string |
Yes | |
pipeline_run.ci_runner_pool_id |
string |
Yes | |
pipeline_run.commit_sha |
string |
Yes | |
pipeline_run.concurrency_key |
string |
Yes | |
pipeline_run.created_at |
string (date-time) |
Yes | |
pipeline_run.creator_user_id |
string |
Yes | |
pipeline_run.display_id |
integer |
Yes | |
pipeline_run.failed |
boolean |
Yes | |
pipeline_run.finished_at |
string (date-time) |
Yes | |
pipeline_run.hosted_app_id |
string |
Yes | |
pipeline_run.id |
string |
Yes | |
pipeline_run.message |
string |
Yes | |
pipeline_run.number |
integer |
Yes | |
pipeline_run.organization_id |
string |
Yes | |
pipeline_run.parameters_json |
string |
Yes | |
pipeline_run.queued_at |
string (date-time) |
Yes | |
pipeline_run.ref_name |
string |
Yes | |
pipeline_run.repository_id |
string |
Yes | |
pipeline_run.required_capabilities_csv |
string |
Yes | |
pipeline_run.retry_number |
integer |
Yes | |
pipeline_run.retryable |
boolean |
Yes | |
pipeline_run.slug |
string |
Yes | |
pipeline_run.source_url |
string |
Yes | |
pipeline_run.started_at |
string (date-time) |
Yes | |
pipeline_run.status |
string |
Yes | |
pipeline_run.status_label |
string |
Yes | |
pipeline_run.status_state |
enum: active, successful, failed, canceled, blocked, skipped, ... |
Yes | |
pipeline_run.status_tone |
enum: success, danger, warning, default |
Yes | |
pipeline_run.trigger_kind |
string |
Yes | |
pipeline_run.updated_at |
string (date-time) |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
POST /api/v1/ci/pipelines/{pipeline_id}/runs
Operation ID: post_api_v1_ci_pipelines_pipeline_id_runs.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
pipeline_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/{id}
Operation ID: api_v1_pipeline_run.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
pipeline_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Responses
200: CI pipeline run catalog
application/json
| Property | Type | Required | Description |
|---|---|---|---|
pipeline_run |
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
Operation ID: api_v1_pipeline_runs.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
pipeline_id |
path |
string |
Yes |
Responses
200: Success
application/json
The response is object.