GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation uploads a specific Conan package file to a GitLab instance using the GitLab API. It is designed for managing Conan packages in GitLab's package registry, allowing users to update or add files such as conanfile.py, conanmanifest.txt, or conan_package.tgz for a given package version and channel. This is useful in CI/CD pipelines or automated package management workflows where Conan packages need to be programmatically maintained within GitLab.

Use Case Examples

  1. Uploading a new conanfile.py for version 1.0 of a package named 'my-package' under a specific user and channel.
  2. Updating the conan_package.tgz file for a stable channel release of a Conan package in GitLab.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
baseUrl The base URL of the GitLab instance to which the request is sent.
Method HTTP method used for the request, typically PUT for this operation.
Path Parameters Parameters required in the URL path to identify the package and file to upload.

Output

JSON

  • response - The JSON response from the GitLab API after uploading the file, typically containing status and metadata about the uploaded file.

Dependencies

  • Requires GitLab API credentials for authentication.

Troubleshooting

  • Ensure all required path parameters are correctly provided; missing or incorrect parameters will cause API errors.
  • Authentication errors may occur if the GitLab API token is invalid or missing; verify credentials are set up correctly.
  • File upload may fail if the file_name parameter is not one of the allowed enum values.
  • Network or permission issues on the GitLab instance can cause request failures; check connectivity and access rights.

Links

Discussion