GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves the digest of a specific Conan package from a GitLab project using the GitLab API. It is useful for developers and DevOps teams who manage Conan packages in GitLab and need to verify or obtain metadata about a particular package version, user, and channel within a project. For example, it can be used to automate package validation or integrate package metadata retrieval into CI/CD pipelines.

Use Case Examples

  1. Retrieve the digest of a Conan package version '1.0' named 'my-package' for user 'my-group+my-project' on the 'stable' channel within a specific GitLab project.
  2. Automate the verification of Conan package integrity by fetching the package digest before deployment.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request (boolean). Defaults to false.
Authentication The authentication method used for the API request, typically an API key credential for GitLab.
baseUrl The base URL of the GitLab instance. Defaults to https://gitlab.com.
Method HTTP method to use for the request. Defaults to GET.
Path Parameters Parameters required in the API path to identify the project and Conan package details.

Output

JSON

  • digest - The digest value of the specified Conan package, representing its unique content hash or metadata.

Dependencies

  • GitLab API authentication token or API key credential

Troubleshooting

  • Ensure all required path parameters (project ID, package name, version, username, channel, and package reference) are correctly provided and URL-encoded if necessary.
  • If authentication is enabled, verify that the GitLab API token or credentials are valid and have sufficient permissions to access the project and package.
  • Common error messages may include 404 Not Found if the project or package does not exist, or 401 Unauthorized if authentication fails. Check the provided parameters and credentials accordingly.

Links

Discussion