GitLab API

GitlabTool

Actions1095

Projects → getApiV4ProjectsIdJobsJobIdArtifacts*artifactPath

AI-generated

Summary

Retrieve a specific artifact file from a job within a GitLab project by specifying the project ID, job ID, and the file path inside the job's artifacts archive.

Inputs

  • id (required) — The ID or URL-encoded path of the target GitLab project.
  • job_id (required) — The ID of the job within the project from which to fetch the artifact.
  • artifact_path (required) — The path to the specific file inside the job's artifact archive to retrieve.
  • job_token — An optional token used for triggers in multi-project pipelines, available only with Premium and Ultimate GitLab tiers.
  • method — HTTP method to use for the request; defaults to GET but can be overridden.
  • baseUrl — Base URL of the GitLab instance; defaults to https://gitlab.com.
  • skipAuthentication — Optionally skip authentication for this request; defaults to false (authentication included).

Output shape

binary file

Returns the content of the specified artifact file as a binary response. No pagination or additional metadata included.

Links

Discussion