GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves a specific Conan package file from a GitLab project using the GitLab API. It is useful for users who need to access detailed package files such as conanfile.py, conanmanifest.txt, or conan_package.tgz for a given project and package version. Practical scenarios include automating package management workflows, integrating package retrieval into CI/CD pipelines, or auditing package contents.

Use Case Examples

  1. Fetching the conanfile.py for a specific package version in a project to inspect or modify the build recipe.
  2. Downloading the conan_package.tgz file to use the pre-built package in a deployment pipeline.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication when making the API request.
Authentication Specifies the authentication method to use for the API request, hidden unless Skip Authentication is false.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method The HTTP method used for the API request.
Path Parameters Parameters required to specify the exact Conan package file to retrieve, including project ID, 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 URL-encoded if necessary.
  • Verify that the authentication token has sufficient permissions to access the project and package files.
  • Check that the specified file_name is one of the allowed values (conanfile.py, conanmanifest.txt, conan_sources.tgz, conan_export.tgz, conaninfo.txt, conan_package.tgz).
  • If skipping authentication, confirm that the GitLab instance allows unauthenticated access to the requested resource.
  • Common error messages include 404 Not Found if the project or file does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion