Skip to content

Upload job artifacts

POST
/api/v4/jobs/{id}/artifacts

Uploads artifacts for a specified job.

id
required
integer

Job’s ID

Media typemultipart/form-data
object
file
required

The artifact file to store (generated by Multipart middleware)

string format: binary
nullable
token

Job’s authentication token

string
nullable
expire_in

Specify when artifact should expire

string
nullable
artifact_type

The type of artifact

string
default: archive nullable
Allowed values: archive metadata trace junit sast dependency_scanning container_scanning dast codequality license_scanning performance metrics metrics_referee network_referee lsif dotenv cobertura terraform accessibility cluster_applications secret_detection requirements coverage_fuzzing browser_performance load_performance api_fuzzing cluster_image_scanning cyclonedx requirements_v2 annotations repository_xray jacoco sarif
artifact_format

The format of artifact

string
default: zip nullable
Allowed values: raw zip gzip
metadata

The artifact metadata to store (generated by Multipart middleware)

string format: binary
nullable
accessibility

Specify accessibility level of artifact private/public

string
nullable

Created

Bad request

Forbidden

Not Found

Artifacts support not enabled

File too large

Too Many Requests