GitLab API

GitlabTool

Actions1000

Overview

This node operation interacts with the GitLab API to generate upload URLs for a specific Conan package version. 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 and managed programmatically.

Use Case Examples

  1. Automating the upload of Conan package files to GitLab during a build process.
  2. Retrieving upload URLs for a specific package version to facilitate manual or scripted uploads.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use if authentication is not skipped.
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 used to specify the Conan package details in the API path.

Output

JSON

  • upload_urls - The URLs to which the Conan package files can be uploaded.

Dependencies

  • GitLab API authentication token

Troubleshooting

  • Ensure all path parameters (package_name, package_version, package_username, package_channel, conan_package_reference) are correctly provided and valid to avoid 404 errors.
  • If authentication is enabled, verify that the GitLab API token is valid and has the necessary 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