GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves specific files related to Conan packages from the GitLab API. It is useful for users who need to access package files such as conanfile.py, conanmanifest.txt, or conan_package.tgz for a given package name, version, username, channel, recipe revision, and file name. Typical use cases include automation of package management, integration with CI/CD pipelines, or fetching package metadata and contents programmatically.

Use Case Examples

  1. Fetching the 'conanfile.py' for a specific Conan package version to inspect its build instructions.
  2. Downloading the 'conan_package.tgz' file to use the pre-built package in a build process.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
baseUrl The base URL of the GitLab instance to send the request to, defaulting to https://gitlab.com.
Method HTTP method to use for the 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, and file name.

Output

JSON

  • fileContent - The content of the requested Conan package file.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure all path parameters are correctly provided and match the package details in GitLab.
  • Verify that authentication is enabled unless explicitly skipped, and that the API token has sufficient permissions to access package files.
  • Check the baseUrl to ensure it points to the correct GitLab instance if using a self-hosted GitLab server.
  • Common errors include 404 Not Found if the package or file does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion