GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves specific Conan package files from a GitLab project using the GitLab API. It is useful for automating the download or inspection of Conan package files such as conanfile.py, conanmanifest.txt, or conaninfo.txt within CI/CD pipelines or package management workflows.

Use Case Examples

  1. Downloading the conaninfo.txt file for a specific Conan package version to verify package metadata.
  2. Fetching the conanfile.py to inspect the package recipe used in a project.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters required to specify the exact Conan package file to retrieve, including project ID, package name, version, username, channel, recipe revision, package reference, package 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 required path parameters are correctly provided and URL-encoded if necessary.
  • Verify that the GitLab API token has sufficient permissions to access the project and package files.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct.
  • Common errors include 404 Not Found if the package or file does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion