GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves the trace log of a specific job within a project on GitLab using the GitLab API. It is useful for monitoring and debugging CI/CD jobs by accessing their execution logs directly. For example, a DevOps engineer can use this node to fetch the trace of a failed job to diagnose issues.

Use Case Examples

  1. Fetch the trace log of job ID 88 in project ID 123 to analyze the job execution details.
  2. Retrieve the trace of a specific CI job to monitor its progress or outcome.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the API request.
Authentication Type of authentication used for the API request, defaulting to GitLab API key.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the API request, default is GET.
Path Parameters Parameters to specify the project ID and job ID for the trace retrieval.

Output

JSON

  • trace - The trace log content of the specified job.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and job ID are correct and exist in the GitLab instance.
  • Verify that the API key has sufficient permissions to access job traces.
  • Check network connectivity to the specified baseUrl.
  • Common error: 404 Not Found - The job or project ID does not exist or is inaccessible.
  • Common error: 401 Unauthorized - Authentication failed or API key is invalid.

Links

Discussion