GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation uploads a specific Conan package file to a GitLab project using the GitLab API. It is designed for managing Conan packages within GitLab's package registry, allowing users to programmatically update or add files such as conanfile.py, conanmanifest.txt, or conaninfo.txt to a Conan package version in a project. This is useful for developers and DevOps teams who automate package management and deployment workflows in CI/CD pipelines.

Use Case Examples

  1. Uploading a new conanfile.py to a Conan package version in a GitLab project.
  2. Updating the conaninfo.txt file of a specific Conan package revision to reflect new build information.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request (boolean). Defaults to false.
Authentication The authentication method used for the API request, typically an API key credential for GitLab.
baseUrl The base URL of the GitLab instance. Defaults to https://gitlab.com.
Method HTTP method to use for the request. For this operation, it is typically PUT.
Path Parameters Collection of path parameters required to identify the project and Conan package file to upload, including project ID, package name, version, username, channel, recipe revision, Conan package reference, package revision, and file name.

Output

JSON

  • statusCode - HTTP status code of the API response.
  • body - Response body containing details about the uploaded file or error information.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Authentication errors if the API key is missing or invalid. Ensure the GitLab API key credential is correctly configured.
  • Invalid path parameters such as project ID or package details may cause 404 Not Found errors. Verify all path parameters are correct and URL-encoded if necessary.
  • File name must be one of the allowed values (e.g., conanfile.py, conanmanifest.txt). Using an unsupported file name will result in an error.

Links

Discussion