GitLab API

GitlabTool

Actions1095

Conan_packages → getApiV4PackagesConanV1FilesPackageNamePackageVersionPackageUsernamePackageChannelRecipeRevisionExportFileName

AI-generated

Summary

Downloads a specific file from a GitLab Conan package export, such as the recipe or package archive.

Inputs

  • package_name (required) — The name of the Conan package.
  • package_version (required) — The version of the Conan package.
  • package_username (required) — The username (namespace) of the package owner.
  • package_channel (required) — The channel of the package (e.g., stable, testing).
  • recipe_revision (required) — The revision ID of the Conan recipe.
  • file_name (required) — The specific file to retrieve from the export. Must be one of: conanfile.py, conanmanifest.txt, conan_sources.tgz, conan_export.tgz, conaninfo.txt, conan_package.tgz.
  • skipAuthentication — If true, skips authentication using the configured credentials.
  • baseUrl — The GitLab API base URL (defaults to https://gitlab.com).

Output shape

The downloaded binary file content (raw bytes).

The file is returned as a binary item. The specific file type (e.g., .tgz or .py) depends on the selected file_name parameter.

Examples

Example 1: Download the recipe file for a specific package version.

Set package_name to 'my-package', package_version to '1.0', and file_name to 'conanfile.py'.

Example 2: Download the package archive for a specific package.

Set package_name to 'my-package', package_version to '1.0', and file_name to 'conan_package.tgz'.

Links

Discussion