GitLab API icon

GitLab API

Gitlab

Actions917

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 process of managing Conan packages within GitLab projects, especially for CI/CD pipelines or package management workflows. For example, it can be used to upload a new version of a Conan package to a project repository, specifying package details such as name, version, username, and channel.

Use Case Examples

  1. Uploading a Conan package version '1.0' named 'my-package' to a GitLab project with ID '123', under the username 'my-group+my-project' and channel 'stable'.
  2. Automating package uploads in a CI pipeline to keep project dependencies up to date.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request (boolean). If true, no authentication is used.
Authentication The authentication method used for the request, typically an API key credential for GitLab.
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 POST is used for this operation.
Path Parameters Collection of path parameters required for the API endpoint, including project ID, package name, version, username, and channel.

Output

JSON

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

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure all required path parameters (id, package_name, package_version, package_username, package_channel) are provided and correctly formatted.
  • Authentication errors may occur if the GitLab API token is missing or invalid; verify the API key credential is correctly configured.
  • Network or permission issues may prevent uploading; check network connectivity and project access rights.

Links

Discussion