GitLab API icon

GitLab API

Gitlab

Actions917

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 examples include automating package management workflows, integrating package retrieval into CI/CD pipelines, or auditing package contents.

Use Case Examples

  1. Retrieve the conanfile.py for a specific Conan package version in a GitLab project.
  2. Download the conan_package.tgz file for a Conan package to use in a build process.

Properties

Name Meaning
Skip Authentication Whether to skip authentication when making the API request.
Authentication The authentication method used for the API request, typically an API key credential for GitLab.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method used for the request, default is GET.
Path Parameters Parameters required in the API path to specify the project and package details.

Output

JSON

  • fileContent - The content of the requested Conan package file retrieved from the GitLab project.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure all required path parameters are correctly provided and URL-encoded if necessary.
  • Verify that the authentication credentials are valid and have sufficient permissions to access the project and package.
  • Check that the specified file_name is one of the allowed enum values to avoid request errors.
  • Common error messages include 404 Not Found if the project, package, or file does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion