GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation allows updating the trace of a specific job in GitLab by sending a PATCH request to the endpoint `/api/v4/jobs/{id}/trace`. It is useful for scenarios where you need to modify or update the trace logs of a job programmatically within an automation workflow, such as updating job trace information after a job execution or for debugging purposes.

Use Case Examples

  1. Updating the trace log of a CI/CD job in GitLab to reflect new information.
  2. Automating the modification of job trace data as part of a larger DevOps pipeline.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance to which the request is sent.
Method The HTTP method to use for the request, defaulting to GET but can be set to PATCH for this operation.
Path Parameters The path parameters for the request, specifically the job ID to identify which job's trace to update.

Output

JSON

  • response - The response from the GitLab API after updating the job trace.

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 correctly configured and have sufficient permissions to update job traces.
  • Check that the base URL is correctly set to the GitLab instance you intend to interact with.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated PATCH requests to job traces, which is uncommon.

Links

Discussion