GitLab API

GitlabTool

Actions905

Overview

This node operation authorizes a PUT request to upload or update 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, and others within a GitLab project, enabling automation of package file management in CI/CD pipelines or package repositories.

Use Case Examples

  1. Uploading or updating a conanfile.py for a Conan package version in a GitLab project.
  2. Automating the authorization process for exporting Conan package files during a build pipeline.

Properties

Name Meaning
Skip Authentication If true, the node skips authentication for the API request.
Authentication The authentication method used for the API request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method for the API request, defaulting to PUT.
Parameter Schema Defines the required path parameters for the API request, 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 authorize for upload or update.

Output

JSON

  • statusCode - HTTP status code of the API response.
  • body - Response body from the GitLab API, typically containing authorization details or confirmation.

Dependencies

  • GitLab API key credential 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 key is invalid or missing; verify credentials are correctly configured.
  • HTTP method must be PUT for this operation; using other methods may result in failure.

Links

Discussion