GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves the variables of a specific pipeline within a GitLab project using the GitLab API. It is useful for scenarios where you need to access or manage pipeline variables programmatically, such as in CI/CD automation workflows or monitoring pipeline configurations.

Use Case Examples

  1. Fetch pipeline variables for project ID 11 and pipeline ID 18 to analyze or modify CI/CD settings.
  2. Automate retrieval of pipeline variables to integrate with other systems or dashboards.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated endpoints.
Authentication Type of authentication to use, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters for the API path, including project ID and pipeline ID to specify the target pipeline variables.

Output

JSON

  • variables - List of variables associated with the specified pipeline in the project

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and pipeline ID are correct and exist in the GitLab instance to avoid 404 errors.
  • Verify that the API key has sufficient permissions to access pipeline variables to prevent authorization errors.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure the URL is correct.

Links

Discussion