GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation allows uploading or updating a specific file related to a Conan package in a GitLab repository via the GitLab API. It is useful for managing package files such as conanfile.py, conanmanifest.txt, or conaninfo.txt within a Conan package version, enabling automation of package file management in CI/CD pipelines or package repositories.

Use Case Examples

  1. Uploading a new conaninfo.txt file for a specific Conan package version to GitLab.
  2. Updating the conanfile.py of a Conan package to fix or improve the package recipe.

Properties

Name Meaning
Skip Authentication Option to skip authentication for 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 to specify the exact Conan package file to upload or update, including package name, version, username, channel, recipe revision, Conan package reference, package revision, and file name.

Output

JSON

  • statusCode - HTTP status code returned by the API after the file upload or update operation.
  • responseBody - Response body content from the API call, 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 and valid to avoid 404 or 400 errors.
  • Verify that the authentication token has sufficient permissions to upload or modify package files in the GitLab repository.
  • Check that the file_name parameter is one of the allowed file names to prevent invalid file errors.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated access for this operation, otherwise authentication errors will occur.

Links

Discussion