GitLab API

GitlabTool

Actions905

Overview

This node operation uploads a specific Conan package file to a GitLab instance using the GitLab API. It is designed to handle package files such as conanfile.py, conanmanifest.txt, conan_sources.tgz, conan_export.tgz, conaninfo.txt, and conan_package.tgz. This operation is useful for developers and DevOps teams managing Conan packages in GitLab, enabling automated package file uploads as part of CI/CD pipelines or package management workflows.

Use Case Examples

  1. Uploading a new version of a Conan package file to GitLab for distribution.
  2. Automating the update of Conan package metadata files in a GitLab repository.

Properties

Name Meaning
Skip Authentication If set to true, the node will skip authentication when making the API request.
Authentication The authentication method used for the API request, typically a GitLab API key.
baseUrl The base URL of the GitLab instance to which the request is sent, defaulting to https://gitlab.com.
Method The HTTP method used for the request, default is PUT for this operation.
Parameter Schema Defines the path parameters required for the API call, including package name, version, username, channel, recipe revision, and file name.
Path Parameters Collection of path parameters specifying the package details and file name to upload.

Output

JSON

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

Dependencies

  • Requires GitLab API key credential for authentication.

Troubleshooting

  • Ensure all required path parameters (package_name, package_version, package_username, package_channel, recipe_revision, file_name) are correctly provided; missing or incorrect parameters will cause API errors.
  • Authentication errors may occur if the GitLab API key is invalid or missing; verify the API key and permissions.
  • File upload may fail if the file type is not one of the allowed enum values (conanfile.py, conanmanifest.txt, conan_sources.tgz, conan_export.tgz, conaninfo.txt, conan_package.tgz).
  • Network or base URL misconfiguration can cause connection failures; ensure the baseUrl is correct and accessible.

Links

Discussion