GitLab API icon

GitLab API

Gitlab

Actions880

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 specific Conan package version in a GitLab project.
  2. Updating the conan_package.tgz file for a given package version and channel in a project repository.

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 with options including POST, PUT, DELETE, HEAD, PATCH.
Path Parameters Parameters required in the API 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.
  • body - Response body 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 matches one of the allowed Conan package file names.
  • Common errors include 401 Unauthorized (authentication issues), 404 Not Found (incorrect project or package identifiers), and 400 Bad Request (invalid parameters).

Links

Discussion