GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation allows uploading or updating specific Conan package files in a GitLab project via the GitLab API. It is useful for managing Conan package files such as conanfile.py, conanmanifest.txt, and 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 stable channel of a Conan package in a project.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the API request.
Authentication Type of authentication used for the API request, typically an API key credential.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method used for the request, default is PUT for this operation.
Path Parameters Parameters required in the API path to identify the project and package details.

Output

JSON

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

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure all required path parameters are correctly provided and URL-encoded if necessary.
  • Verify that the authentication credentials are valid and have sufficient permissions to upload package files.
  • Check that the file_name parameter is one of the allowed values to avoid invalid file errors.
  • Common error messages include 401 Unauthorized (authentication issues), 404 Not Found (invalid project or package details), and 400 Bad Request (invalid parameters). Resolving these involves correcting credentials, verifying project/package existence, and validating input parameters.

Links

Discussion