Artifacts
Files a task uploaded after its run, with time-limited download URLs.
List a job's artifacts
Artifacts with signed urls.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | The job's ID. |
cursor | string | Optional | |
limit | string | Optional |
Response
datahas_morenext_cursor
curl "$CIRESK_API/v1/ci/jobs/job_0109badfc220cd056b2c0e862ac73d40/artifacts" \
-H "Authorization: Bearer $CIRESK_KEY"Get an artifact
One artifact with a signed url.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | The job's ID. |
name | string | Required | The artifact's name; it may contain slashes. |
Response
digest- sha-256 digest as
sha256:<64 hex> expires_atmedia_typenamesize_bytestaskurl- presigned
curl "$CIRESK_API/v1/ci/jobs/job_0109badfc220cd056b2c0e862ac73d40/artifacts/target/dist/platform-api.tar.zst" \
-H "Authorization: Bearer $CIRESK_KEY"Start an artifact upload
A presigned put for one artifact.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | The job's ID. |
task | string | Required | The task's name, as the manifest names it (test, apps/web:test). |
Idempotency-Key | string | Required |
Request body
digest- sha-256 digest as
sha256:<64 hex> lease_id- uuidv7 rendered as
lease_<32 hex> media_typename- validated relative path
partssize
Response
existsmultipartmultipart.complete_urlmultipart.part_urlsmultipart.upload_idupload- a presigned put
upload.expires_atupload.headersupload.methodupload.url
curl -X POST "$CIRESK_API/v1/ci/jobs/job_0109badfc220cd056b2c0e862ac73d40/tasks/test/artifacts" \
-H "Authorization: Bearer $CIRESK_KEY" \
-H "Idempotency-Key: f9d17a6f-2e1a-440b-9c60-d3655efd5aba" \
-H "Content-Type: application/json" \
-d '{
"digest": "sha256:c21fa32a40d82233c44e76e6ae776b4d403ac1a564ca26de95a14c6bb47eaf49",
"lease_id": "lease_01778d67b48ee630f44b3f03ab6254a8",
"media_type": "application/zstd",
"name": "acme/platform",
"parts": 1,
"size": 18432000
}'