GitLab API

GitlabTool

Actions1000

Overview

This node operation allows uploading or updating a specific Conan package file in a GitLab project using the GitLab API. It is useful for managing Conan package files such as conanfile.py, conanmanifest.txt, or conan_package.tgz within a project's package repository. 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 to a project's Conan package repository.
  2. Updating the conan_package.tgz file for a specific package version and channel.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the 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 typical for this operation.
Path Parameters Parameters required in the URL path to identify the project and package file to upload or update.

Output

JSON

  • statusCode - HTTP status code returned by the API after the request.
  • responseBody - The response body returned by the GitLab API, typically containing details about the uploaded or updated package file.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure all required path parameters are correctly provided and URL-encoded if necessary.
  • Verify that the authentication token has sufficient permissions to upload or update package files in the specified project.
  • Check that the file_name parameter is one of the allowed Conan package file names to avoid invalid requests.
  • If the API returns an error, review the statusCode and responseBody for details on the failure reason, such as permission denied or invalid project ID.

Links

Discussion