GitLab API

GitlabTool

Actions905

Overview

This node operation uploads Conan package upload URLs to a specific project in GitLab. It is useful for managing Conan packages within GitLab projects, allowing users to programmatically upload package metadata and files. Practical applications include automating package uploads in CI/CD pipelines and managing package versions and channels in GitLab repositories.

Use Case Examples

  1. Uploading a new version of a Conan package to a GitLab project.
  2. Automating the upload of Conan package metadata during a build process.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API request, hidden unless Skip Authentication is false.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, default is GET but POST is used for this operation.
Path Parameters Parameters required in the API path to identify the project and Conan package details.

Output

JSON

  • upload_urls - The URLs to upload the Conan package files to GitLab.

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 packages to the specified project.
  • Check the baseUrl is correct and accessible.
  • Common error: 401 Unauthorized - indicates authentication failure; verify credentials.
  • Common error: 404 Not Found - indicates the project or package reference does not exist or is incorrect.

Links

Discussion