GitLab API

GitlabTool

Actions1000

Overview

This node operation allows patching the trace of a specific job in GitLab by its ID. It is useful for updating or modifying the trace logs of a job, which can help in debugging or managing CI/CD pipelines in GitLab. For example, a user might patch a job trace to add additional information or correct trace data after a job has run.

Use Case Examples

  1. Updating the trace log of a GitLab CI job by specifying the job ID and sending the patch data.
  2. Modifying job trace information to reflect new status or error details.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the request.
Authentication Specifies the authentication method to use, hidden if Skip Authentication is true.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but PATCH is relevant here.
Path Parameters Parameters to be included in the request path, specifically the job ID to identify which job trace to patch.

Output

JSON

  • id - The ID of the job whose trace was patched.
  • trace - The updated trace information of the job.

Dependencies

  • GitLab API authentication

Troubleshooting

  • Ensure the job ID provided in the path parameters is valid and exists in the GitLab instance.
  • Verify that the authentication credentials are correct and have sufficient permissions to patch job traces.
  • Check that the base URL is correctly set to the GitLab instance being accessed.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated patch requests, which is uncommon.

Links

Discussion