GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves download URLs for a specific Conan package version from a GitLab project using the GitLab API. It is useful for automating the process of accessing package download links in CI/CD pipelines or package management workflows within GitLab projects. For example, it can be used to fetch URLs for a Conan package to integrate with build or deployment scripts.

Use Case Examples

  1. Fetch download URLs for a Conan package version in a GitLab project to automate package deployment.
  2. Retrieve package download links for auditing or reporting purposes in a DevOps pipeline.

Properties

Name Meaning
Skip Authentication Whether to skip authentication when making the API request.
Authentication The authentication method used for the API request, typically a GitLab API key.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the API request, default is GET.
Path Parameters Parameters required in the API path to specify the project and Conan package details.

Output

JSON

  • download_urls - List of URLs to download the specified Conan package version.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure all required path parameters (project ID, package name, version, username, channel, and package reference) are correctly provided to avoid 404 or invalid request errors.
  • If authentication is enabled, verify that the GitLab API key is valid and has sufficient permissions to access the project and packages.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure the URL is correct.

Links

Discussion