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 packages within GitLab's package registry, enabling automation of package file uploads such as conanfile.py, conanmanifest.txt, or conaninfo.txt. Practical scenarios include CI/CD pipelines where package files need to be programmatically updated or maintained in GitLab projects.

Use Case Examples

  1. Uploading a new conaninfo.txt file for a specific Conan package version in a GitLab project.
  2. Updating the conanfile.py recipe file for a Conan package in a GitLab project as part of an automated build process.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated access scenarios.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but can be set to PUT for this operation.
Path Parameters Parameters required in the URL path to identify the project and specific Conan package file to upload or update.

Output

JSON

  • statusCode - HTTP status code of the API response indicating success or failure.
  • 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 GitLab project.
  • Check that the file_name parameter is one of the allowed Conan package file names.
  • Common errors include 401 Unauthorized (authentication issues), 404 Not Found (incorrect project ID or package details), and 400 Bad Request (invalid parameters).

Links

Discussion