GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves the digest information of a specific Conan package from the GitLab API. It is useful for users who want to programmatically access metadata about a Conan package hosted on GitLab, such as verifying package integrity or managing package versions.

Use Case Examples

  1. A developer wants to verify the digest of a Conan package named 'my-package' version '1.0' under the username 'my-group+my-project' and channel 'stable' to ensure it matches the expected value before deployment.
  2. A CI/CD pipeline fetches the digest of a Conan package to automate package validation steps.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication when making the API request.
Authentication Specifies the authentication method to use, typically an API key credential for GitLab.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method The HTTP method used for the API request, defaulting to GET.
Path Parameters Parameters used to specify the Conan package details in the API path, including package name, version, username, and channel.

Output

JSON

  • digest - The digest information of the specified Conan package retrieved from the GitLab API.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure that the path parameters (package_name, package_version, package_username, package_channel) are correctly provided and match the package details in GitLab.
  • If authentication is enabled, verify that the GitLab API credential is valid and has sufficient permissions to access the package information.
  • Check the baseUrl to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.
  • Common error messages may include 404 Not Found if the package does not exist or 401 Unauthorized if authentication fails.

Links

Discussion