GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation interacts with the GitLab API to obtain upload URLs for a specific Conan package version. It is useful for automating package management workflows in GitLab, particularly for uploading package files to the GitLab Conan package registry. For example, it can be used in CI/CD pipelines to programmatically retrieve upload URLs before uploading package binaries.

Use Case Examples

  1. Automate retrieval of upload URLs for a Conan package version in GitLab.
  2. Integrate with CI/CD pipelines to manage Conan package uploads automatically.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance to which the request is sent.
Method HTTP method to use for the request, default is GET but can be POST, PUT, DELETE, HEAD, or PATCH.
Path Parameters Parameters required in the API path to specify the Conan package details.

Output

JSON

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

Dependencies

  • Requires GitLab API authentication credentials to authorize requests.

Troubleshooting

  • Ensure that the path parameters (package_name, package_version, package_username, package_channel) are correctly set and match existing packages in GitLab.
  • Verify that the GitLab API credentials are valid and have sufficient permissions to access the package registry.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure the URL is correct.
  • Common errors include 401 Unauthorized (authentication issues), 404 Not Found (incorrect package details), and 400 Bad Request (invalid parameters).

Links

Discussion