GitLab API

GitlabTool

Actions905

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 verify or inspect the digest of a Conan package version hosted on GitLab, which can help in package management, validation, and automation workflows involving Conan packages.

Use Case Examples

  1. A developer wants to fetch the digest of a Conan package named 'my-package' version '1.0' under the username 'my-group+my-project' and channel 'stable' to verify its integrity before deployment.
  2. A CI/CD pipeline step that automatically retrieves the digest of a Conan package to ensure the correct package version is being used in the build process.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request. If true, no authentication is used.
Authentication The authentication method used for the API request, typically an API key credential for GitLab.
baseUrl The base URL of the GitLab instance to which the API request is sent. Defaults to https://gitlab.com.
Method The HTTP method used for the API request. Defaults to GET.
Path Parameters The parameters required in the API request path to specify the Conan package details.

Output

JSON

  • digest - The digest information of the specified Conan package version.

Dependencies

  • GitLab API authentication token or API key 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 token or credentials are valid and have sufficient permissions to access the package information.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure the URL is correct.
  • Common error messages may include 404 Not Found if the package does not exist or 401 Unauthorized if authentication fails. Verify parameters and credentials accordingly.

Links

Discussion