GitLab API

GitlabTool

Actions1095

Projects → getApiV4ProjectsIdJobsJobIdTrace

AI-generated

Summary

Fetch the trace log of a specific job within a GitLab project by providing the project ID and job ID.

Inputs

  • id (required) — The ID of the GitLab project to query.
  • job_id (required) — The ID of the specific job within the project whose trace log to retrieve.
  • baseUrl — The base URL of the GitLab instance (default is https://gitlab.com).
  • skipAuthentication — If set to true, skips authentication for this request.
  • method — The HTTP method to use; defaults to GET. Typically GET is used for this operation.

Output shape

a string containing the textual trace log output of the specified job

Requires valid authentication credentials unless 'Skip Authentication' is enabled. The response is the raw trace log content of the job identified by the provided project and job IDs.

Examples

Example 1: Retrieve the trace of a job with ID 88 within project ID 12345

Set 'id' to '12345', 'job_id' to '88', leave 'method' as 'GET', and authenticate with GitLab API credentials.

Links

Discussion