GitLab API icon

GitLab API

Gitlab

Actions1062

Jobs → patchApiV4JobsIdTrace

AI-generated

Summary

Sends an HTTP request to the GitLab API endpoint /api/v4/jobs/{id}/trace using the selected method (default GET). Returns the response from GitLab, which for a GET request is the job trace as plain text.

Inputs

  • baseUrl — Base URL of the GitLab instance (default: https://gitlab.com).
  • method — HTTP method to use (GET, POST, PUT, DELETE, HEAD, PATCH). Default: GET.
  • skipAuthentication — If true, the request is sent without using credentials.
  • authentication (required) — Credential to use for authentication (GitLab API). Ignored when skipAuthentication is true.
  • id (required) — The ID of the job whose trace to retrieve or modify.

Output shape

any

The raw response from the GitLab API. For a GET request to /jobs/:id/trace, this is the job trace as plain text.

Examples

Example 1: Get the trace of a job

baseUrl: https://gitlab.com, method: GET, skipAuthentication: false, id: 12345

Links

Discussion