GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves a specific Conan package from a GitLab project using the GitLab API. It is useful for automating the process of fetching package details in CI/CD pipelines or package management workflows within GitLab projects. For example, it can be used to get metadata or contents of a Conan package by specifying the project ID, package name, version, username, and channel.

Use Case Examples

  1. Fetch a Conan package version '1.0' named 'my-package' from a project with ID '123' to verify package details before deployment.
  2. Automate retrieval of a specific Conan package for integration testing in a GitLab CI pipeline.

Properties

Name Meaning
Skip Authentication Whether to skip authentication when making the API request.
baseUrl The base URL of the GitLab instance to send the request to.
Method HTTP method to use for the request (GET, POST, PUT, DELETE, HEAD, PATCH).
Path Parameters Parameters required in the API path to identify the specific Conan package.

Output

JSON

  • id - The ID of the project.
  • package_name - The name of the Conan package.
  • package_version - The version of the Conan package.
  • package_username - The username or namespace associated with the package.
  • package_channel - The channel of the Conan package.
  • package_details - Detailed information about the Conan package retrieved from the GitLab API.

Dependencies

  • GitLab API authentication token or API key credential

Troubleshooting

  • Ensure the project ID and package parameters are correctly URL-encoded to avoid 404 errors.
  • Authentication errors may occur if the API token is missing or invalid; verify credentials are correctly configured.
  • Check the base URL if connecting to a self-hosted GitLab instance to avoid connection failures.

Links

Discussion