GitLab API

GitlabTool

Actions905

Overview

This node operation allows uploading URLs for a Conan package to the GitLab API. It is useful for managing Conan packages hosted on GitLab, enabling users to specify package details and obtain upload URLs for package files. Practical applications include automating package uploads in CI/CD pipelines or managing package versions programmatically.

Use Case Examples

  1. Uploading a new version of a Conan package to GitLab by specifying the package name, version, username, and channel to get the upload URLs needed for the package files.
  2. Automating the process of updating package upload URLs in a GitLab repository for continuous integration workflows.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method used for the request, defaulting to GET but can be POST, PUT, DELETE, HEAD, or PATCH.
Path Parameters Parameters specifying the Conan package details required for the API endpoint, including package_name, package_version, package_username, and package_channel.

Output

JSON

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

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure all path parameters (package_name, package_version, package_username, package_channel) are correctly provided and valid to avoid 404 or 400 errors.
  • Verify that the GitLab API key credential is correctly configured and has the necessary permissions to access the package registry.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct and accessible.
  • Common error messages may include authentication failures, invalid package details, or permission denied errors. Resolving these typically involves verifying credentials, parameters, and user permissions.

Links

Discussion