GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation interacts with the GitLab API to generate upload URLs for a specific Conan package version. It is useful in scenarios where users need to upload package files to GitLab's Conan package registry, facilitating package management and distribution within GitLab projects or groups.

Use Case Examples

  1. Uploading a new version of a Conan package to GitLab's package registry.
  2. Automating the process of obtaining upload URLs for package files in a CI/CD pipeline.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, typically an API key credential for GitLab.
baseUrl The base URL of the GitLab instance to which the request is sent.
Method The HTTP method to use for the request (GET, POST, PUT, DELETE, HEAD, PATCH).
Path Parameters Parameters required in the API path to specify the Conan package details.

Output

JSON

  • upload_urls - The URLs generated for uploading the Conan package files.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure all required path parameters (package_name, package_version, package_username, package_channel, conan_package_reference) are correctly provided and valid to avoid 404 or 400 errors.
  • If authentication is enabled, verify that the GitLab API key credential is valid and has sufficient permissions to access the package registry.
  • Check the baseUrl to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.

Links

Discussion