GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → getApiV4ProjectsIdJobsArtifactsRefNameDownload

AI-generated

Summary

Download the job artifacts archive for a specific project, reference (branch or tag), and job name from the GitLab API.

Inputs

  • id (required) — The ID or URL-encoded path of the project whose job artifacts to download.
  • ref_name (required) — The branch or tag name in the repository to target; HEAD or SHA references are not supported.
  • job (required) — The name of the job whose artifacts should be downloaded.
  • job_token — Optional token to be used with triggers for multi-project pipelines (available only on Premium and Ultimate GitLab tiers).
  • baseUrl — The base URL of the GitLab instance; defaults to 'https://gitlab.com'.
  • skipAuthentication — If set to true, disables authentication for this request.
  • method — The HTTP method to use; defaults to GET and is typically not changed.

Output shape

a binary file stream containing the downloaded job artifacts archive

The operation returns the job artifacts archive as a binary download. The response body contains the raw file data for use in subsequent workflow nodes that handle binary data.

Examples

Example 1: Download artifacts for a specific job in a GitLab project.

Provide the project ID or URL-encoded path, the reference name (branch or tag), and the job name. Optionally provide a job token if using multi-project pipeline triggers on supported tiers.

Links

Discussion