GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves download URLs for a specific Conan package version from a GitLab project. It is useful for automating the process of accessing package download links in CI/CD pipelines or package management workflows. For example, it can be used to fetch URLs for a Conan package stored in a GitLab repository to facilitate automated deployment or distribution.

Use Case Examples

  1. Fetching download URLs for a Conan package version '1.0' named 'my-package' in a GitLab project identified by its ID or URL-encoded path.
  2. Automating retrieval of package download links for a specific user and channel in a Conan package repository hosted on GitLab.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication when making the API request.
Authentication Specifies the authentication method to use if authentication is not skipped. The default is 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.
Path Parameters Collection of parameters required to specify the Conan package and project details for the API request.

Output

JSON

  • download_urls - The list of download URLs for the specified Conan package version.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure all required path parameters (id, package_name, package_version, package_username, package_channel, conan_package_reference) are correctly provided and URL-encoded if necessary.
  • Verify that the GitLab API token has sufficient permissions to access the project's packages.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct.
  • If skipping authentication, ensure the requested resource is publicly accessible.
  • Common error messages may include 404 Not Found if the package or project does not exist, or 401 Unauthorized if authentication fails.

Links

Discussion