GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves specific Conan package files from a GitLab project using the GitLab API. It is useful for developers and DevOps engineers who need to programmatically access Conan package files such as conanfile.py, conanmanifest.txt, or conan_package.tgz stored in GitLab projects. For example, it can be used to automate the download of package metadata or binaries during CI/CD pipelines or package management workflows.

Use Case Examples

  1. Downloading the conanfile.py of a specific Conan package version from a GitLab project to inspect or modify the build recipe.
  2. Automating the retrieval of conan_package.tgz to use the binary package in a deployment 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 to specify the exact Conan package file to retrieve from the GitLab project.

Output

JSON

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

Dependencies

  • GitLab API authentication token or API key credential

Troubleshooting

  • Ensure all required path parameters are correctly provided and URL-encoded if necessary.
  • Authentication errors may occur if the API key or token is missing, invalid, or lacks sufficient permissions.
  • File not found errors can happen if the specified file_name does not exist for the given package version and revision.
  • Network or baseUrl misconfiguration can cause connection failures; verify the GitLab instance URL is correct.

Links

Discussion