GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves download URLs for a specific Conan package hosted on GitLab. It is useful for users who want to programmatically access the download links of a Conan package by specifying its name, version, username, and channel. For example, a developer or CI/CD pipeline can use this node to fetch package download URLs to automate package management or deployment processes.

Use Case Examples

  1. Fetch download URLs for a Conan package named 'my-package' version '1.0' under the user 'my-group+my-project' and channel 'stable'.
  2. Automate retrieval of package download links in a build pipeline to ensure the correct package version is used.

Properties

Name Meaning
Skip Authentication Whether to skip authentication when making the API request.
Authentication The authentication method to use if authentication is not skipped. Currently supports GitLab API authentication.
baseUrl The base URL of the GitLab instance to which the API request is sent. Defaults to https://gitlab.com.
Method The HTTP method used for the API request. Defaults to GET. Options include GET, POST, PUT, DELETE, HEAD, PATCH.
Path Parameters Parameters used to specify the Conan package details in the API path, including package_name, package_version, package_username, and package_channel.

Output

JSON

  • download_urls - List of download URLs for the specified Conan package.

Dependencies

  • GitLab API authentication

Troubleshooting

  • Ensure the path parameters (package_name, package_version, package_username, package_channel) are correctly set and not empty to avoid 404 errors.
  • If authentication is enabled, verify that the GitLab API credentials are valid and have sufficient permissions to access the package data.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure the URL is correct and reachable.

Links

Discussion