GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves specific Conan package files from a GitLab project using the GitLab API. It is useful for automating the download of package files such as conanfile.py, conanmanifest.txt, or conan_package.tgz from a project's Conan package repository. Practical applications include CI/CD pipelines where package files need to be fetched programmatically for builds or deployments.

Use Case Examples

  1. Downloading the conanfile.py of a specific Conan package version from a GitLab project.
  2. Fetching the conan_package.tgz file for a given package version and channel 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.
pathParameters Collection of path parameters required to specify the project and package details for the API call.

Output

JSON

  • fileContent - 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.
  • Verify that the authentication token has sufficient permissions to access the project and package files.
  • Check that the file_name parameter is one of the allowed enum values to avoid invalid requests.
  • Common errors include 404 Not Found if the project or package does not exist, or 401 Unauthorized if authentication fails.

Links

Discussion