GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation interacts with the GitLab API to generate upload URLs for a Conan package. It is useful for automating the process of uploading package files to GitLab's Conan package registry by obtaining the necessary URLs for file uploads. Typical use cases include CI/CD pipelines where package uploads need to be automated based on package name, version, username, and channel.

Use Case Examples

  1. Automate uploading a Conan package version '1.0' named 'my-package' for user 'my-group+my-project' on the 'stable' channel to GitLab's package registry.
  2. Generate upload URLs dynamically during a build process to facilitate package distribution.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET with options including POST, PUT, DELETE, HEAD, PATCH.
Path Parameters Parameters required in the API path to specify the Conan package details including package name, version, username, and channel.

Output

JSON

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

Dependencies

  • GitLab API authentication credential

Troubleshooting

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

Links

Discussion