GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves specific files related to Conan packages from the GitLab API. It is designed to fetch files such as conanfile.py, conanmanifest.txt, conan_sources.tgz, conan_export.tgz, conaninfo.txt, or conan_package.tgz for a given Conan package identified by its name, version, username, channel, recipe revision, package reference, and package revision. This is useful for developers or CI/CD pipelines that need to programmatically access Conan package files stored in GitLab's package registry.

Use Case Examples

  1. A developer wants to download the conaninfo.txt file for a specific Conan package version to verify package metadata.
  2. A CI/CD pipeline fetches the conanfile.py to inspect or modify the build recipe before deployment.

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.
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 used to specify the Conan package and file to retrieve, including package name, version, username, channel, recipe revision, Conan package reference, package revision, and file name.

Output

Binary

The node can output binary data representing the contents of the requested Conan package file.

JSON

  • fileContent - The content of the requested Conan package file, typically returned as binary data.

Dependencies

  • Requires GitLab API access with appropriate credentials (API key or token).

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 API key is missing, invalid, or lacks permissions to access the package registry.
  • File not found errors can occur if the specified file_name does not exist for the given package reference and revision.

Links

Discussion