GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves specific files related to Conan packages from 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 package name, version, username, channel, recipe revision, and file name. Practical applications include automating package management workflows, integrating package data retrieval into CI/CD pipelines, or auditing package 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 deployment process.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication when making the API request.
Authentication Specifies the authentication method to use if authentication is not skipped.
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.

Output

JSON

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

Dependencies

  • Requires GitLab API authentication credentials unless 'Skip Authentication' is enabled.

Troubleshooting

  • Ensure all path parameters (package_name, package_version, package_username, package_channel, recipe_revision, file_name) are correctly provided and valid.
  • If authentication is required, verify that the GitLab API credentials are correctly configured and have sufficient permissions.
  • Check the baseUrl to ensure it points to the correct GitLab instance.
  • Common errors include 404 Not Found if the specified package or file does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion