GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation allows uploading or updating a specific Conan package file in a GitLab repository using the GitLab API. It is useful for managing Conan package files such as conanfile.py, conanmanifest.txt, or conan_package.tgz within a GitLab project. Typical use cases include automating package file uploads during CI/CD pipelines or managing package versions programmatically.

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 package to ensure the latest binaries are available.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but PUT is typically used for this operation.
Path Parameters Parameters required in the API path to specify the package details and file name.

Output

JSON

  • statusCode - HTTP status code returned by the API after the file upload operation.
  • responseBody - Response body from the API, typically containing details about the uploaded file or operation result.

Dependencies

  • GitLab API authentication token or credentials

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 correctly configured.
  • File upload may fail if the file name is not one of the allowed enum values or if the file content is missing or malformed.

Links

Discussion