GitLab API

GitlabTool

Actions905

Overview

This node operation allows uploading Conan package files to a specific project in GitLab using the GitLab API. It is useful for automating the management and distribution of Conan packages within GitLab projects, enabling continuous integration and deployment workflows that involve package versioning and distribution.

Use Case Examples

  1. Uploading a new version of a Conan package to a GitLab project for use in C++ dependency management.
  2. Automating package uploads as part of a CI/CD pipeline to ensure the latest package versions are available to project collaborators.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, typically a GitLab API key.
baseUrl The base URL of the GitLab instance to which the request is sent.
Method The HTTP method used for the request, default is POST for this operation.
Path Parameters Collection of parameters required in the API path to identify the project and package details.

Output

JSON

  • upload_urls - The URLs returned by the API for uploading the Conan package files.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure all required path parameters (id, package_name, package_version, package_username, package_channel) are correctly provided and URL-encoded if necessary.
  • Verify that the GitLab API key has sufficient permissions to upload packages to the specified project.
  • Check the baseUrl to ensure it points to the correct GitLab instance if using a self-hosted GitLab server.
  • Common error messages may include authentication failures, missing parameters, or permission denied errors. Verify credentials and parameter correctness to resolve these.

Links

Discussion