GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves download URLs for a specific Conan package version from a GitLab project. It is useful for automating the retrieval of 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 package named 'my-package' version '1.0' under a specific user and channel in a project.

Use Case Examples

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

Properties

Name Meaning
Skip Authentication Whether to skip authentication when making the API request.
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 package details.

Output

JSON

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

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure all required path parameters (id, package_name, package_version, package_username, package_channel) are provided and correctly formatted.
  • Verify that the GitLab API credentials are valid and have sufficient permissions to access the project and package data.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct.
  • Common error messages may include 401 Unauthorized (authentication issues), 404 Not Found (incorrect project or package details), and 400 Bad Request (invalid parameters).

Links

Discussion