GitLab API

GitlabTool

Actions1000

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 hosted on GitLab, which can help in package management and validation workflows. For example, a developer or DevOps engineer might use this node to programmatically fetch the digest of a package version to ensure integrity before deployment or distribution.

Use Case Examples

  1. Fetch the digest of a Conan package named 'my-package' with version '1.0', username 'my-group+my-project', and channel 'stable' from GitLab.
  2. Use the node to automate validation of package digests in a CI/CD pipeline.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
baseUrl The base URL of the GitLab instance to send the API request to, defaulting to https://gitlab.com.
Method HTTP method to use for the API request, default is GET.
Path Parameters Parameters required in the API request path to specify the Conan package details, 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 not empty, as they are required to form the API request path.
  • If authentication is enabled, verify that the GitLab API credential is valid and has the necessary 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 401 Unauthorized if authentication fails, 404 Not Found if the package details are incorrect or the package does not exist, and 400 Bad Request if required parameters are missing or malformed.

Links

Discussion