GitLab API

GitlabTool

Actions1000

Overview

This node operation uploads or updates a specific file related to a Conan package in a GitLab repository using the GitLab API. It is useful for managing package files such as conanfile.py, conanmanifest.txt, or conaninfo.txt within a Conan package version, allowing 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 reflect changes in the build 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 of the API response indicating success or failure.
  • responseBody - The JSON response body from the GitLab API after uploading or updating the file.

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 authentication credentials are correct and have sufficient permissions to upload or update package files.
  • Check that the file name is one of the allowed values to prevent validation errors.

Links

Discussion