GitLab API

GitlabTool

Actions905

Overview

This node operation performs a POST request to upload URLs for a Conan package in a GitLab repository. It is useful for automating package management workflows, especially when dealing with Conan packages hosted on GitLab. For example, it can be used to programmatically upload package files to GitLab's Conan package registry by specifying package details such as name, version, username, channel, and package reference.

Use Case Examples

  1. Uploading a new version of a Conan package to GitLab's package registry.
  2. Automating the upload process of Conan package files during CI/CD pipelines.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request.
Authentication The authentication method used for the 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 to use for the request, default is POST for this operation.
Path Parameters Parameters required in the URL path to identify the Conan package and its details.

Output

JSON

  • upload_urls - The URLs returned by the API for uploading the Conan package files.

Dependencies

  • Requires GitLab API authentication credentials (API key or token).

Troubleshooting

  • Ensure all required path parameters (package_name, package_version, package_username, package_channel, conan_package_reference) are correctly provided and valid.
  • Authentication errors may occur if the API token is missing, invalid, or lacks sufficient permissions to access the package registry.
  • Network or base URL misconfiguration can cause connection failures; verify the baseUrl is correct and accessible.

Links

Discussion