GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves download URLs for a specific Conan package from the GitLab API. It is useful for users who want to programmatically access package download links based on detailed package identifiers such as package name, version, username, channel, and Conan package reference. For example, a developer or CI/CD pipeline can use this node to fetch download URLs for a Conan package to automate package management or deployment workflows.

Use Case Examples

  1. Fetching download URLs for a Conan package version '1.0' named 'my-package' under the user 'my-group+my-project' and channel 'stable'.
  2. Automating 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.
baseUrl The base URL of the GitLab instance to send the API request to, defaulting to https://gitlab.com.
Method The HTTP method to use for the API request, default is GET.
Path Parameters Parameters required in the API request path to specify the Conan package details.

Output

JSON

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

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure all required path parameters (package_name, package_version, package_username, package_channel, conan_package_reference) are correctly provided and not empty.
  • If authentication is enabled, verify that the GitLab API credentials are valid and have sufficient permissions to access the package data.
  • Check the baseUrl to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.
  • Common error messages may include 404 Not Found if the package details are incorrect or do not exist, and 401 Unauthorized if authentication fails.

Links

Discussion