GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves a specific file from a Conan package revision stored in a GitLab project. It is useful for accessing package metadata or contents such as the conanfile.py, conanmanifest.txt, or conan_package.tgz files. Practical applications include automating package management workflows, auditing package contents, or integrating package data into CI/CD pipelines.

Use Case Examples

  1. Fetch the conanfile.py of a specific Conan package revision to inspect its build instructions.
  2. Download the conan_package.tgz file to use the package binaries in a deployment process.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
Authentication Type of authentication used for the API request, hidden unless Skip Authentication is false.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method used for the request, default is GET.
Path Parameters Parameters required to specify the project and package details for the API call.

Output

JSON

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

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure all path parameters are correctly provided and URL-encoded if necessary to avoid 404 errors.
  • Authentication errors may occur if the API token is missing or invalid; verify credentials are correctly configured.
  • File not found errors can happen if the specified file_name does not exist in the given package revision.

Links

Discussion