GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves specific files from a Conan package stored in GitLab's package registry using the GitLab API v4. It is useful for automating the download or inspection of package files such as conanfile.py, conanmanifest.txt, or conaninfo.txt for a given Conan package version and revision. Practical examples include CI/CD pipelines that need to fetch package metadata or source files for build or deployment processes.

Use Case Examples

  1. Download the conaninfo.txt file for a specific Conan package version to verify package metadata before deployment.
  2. Fetch the conanfile.py from a Conan package to inspect or modify the build recipe programmatically.

Properties

Name Meaning
Skip Authentication Whether to skip authentication when making the API request.
Authentication The authentication method used for the API request, typically a GitLab API key credential.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method The HTTP method used for the API request, default is GET.
Path Parameters Parameters required to specify the exact Conan package file to retrieve, including package name, version, username, channel, recipe revision, Conan package reference, package revision, and file name.

Output

JSON

  • fileContent - The 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 the API request to fail.
  • 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 does not exist in the package; check the file name and package details.

Links

Discussion