GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves specific Conan package files from a GitLab repository using the GitLab API. It is designed to fetch files related to Conan packages, such as conanfile.py, conanmanifest.txt, or conan_package.tgz, by specifying detailed package parameters including package name, version, username, channel, recipe revision, and file name. This is useful for developers managing Conan packages in GitLab, enabling automated access to package files for CI/CD pipelines or package management workflows.

Use Case Examples

  1. Fetching the 'conanfile.py' for a specific Conan package version to verify its recipe.
  2. Downloading the 'conan_package.tgz' file for deployment or testing purposes.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
Authentication Type of authentication used for the API request, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method used for the API request, default is GET.
pathParameters Collection of path parameters required to specify the Conan package file to retrieve, including package name, version, username, channel, recipe revision, and file name.

Output

JSON

  • fileContent - Content of the requested Conan package file retrieved from GitLab.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure all required path parameters are correctly provided; missing or incorrect parameters will cause request failures.
  • Authentication errors may occur if the GitLab API key is invalid or missing; verify credentials are correctly configured.
  • File not found errors can happen if the specified file_name or package details do not exist in the repository; double-check the package and file names.

Links

Discussion