GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation interacts with the GitLab API to obtain upload URLs for a specific Conan package version within a project. It is useful for automating package management workflows in GitLab, particularly for uploading Conan packages to a project's package registry. For example, it can be used in CI/CD pipelines to streamline the process of uploading package binaries to GitLab's Conan package repository.

Use Case Examples

  1. Automate uploading a Conan package version to a GitLab project during a CI/CD pipeline.
  2. Retrieve upload URLs for a specific Conan package version to programmatically manage package uploads.

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 API request (GET, POST, PUT, DELETE, HEAD, PATCH).
Path Parameters Parameters required in the API path to specify the project and Conan package details.

Output

JSON

  • upload_urls - The URLs to which the Conan package files can be uploaded.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure all required path parameters (project ID, package name, version, username, channel, and package reference) are correctly provided to avoid 404 or parameter errors.
  • Verify that the GitLab API credentials are valid and have sufficient permissions to access the project's package registry.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct and accessible.

Links

Discussion