GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves specific Conan package files from a GitLab project using the GitLab API. It is useful for automating the download of package files such as conanfile.py, conanmanifest.txt, or conan_package.tgz from a project's Conan package repository. Typical use cases include CI/CD pipelines, package management automation, and integration with other development tools.

Use Case Examples

  1. Downloading the conanfile.py for a specific package version to verify or modify the build recipe.
  2. Automating the retrieval of conan_package.tgz for deployment or testing purposes.

Properties

Name Meaning
Skip Authentication Option to skip API authentication, useful for public projects or testing.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters required to specify the project and package details for the API call.

Output

JSON

  • id - The ID or URL-encoded path of the project.
  • package_name - Name of the Conan package.
  • package_version - Version of the Conan package.
  • package_username - Username or group/project path associated with the package.
  • package_channel - Channel of the Conan package.
  • recipe_revision - Revision number of the Conan recipe.
  • file_name - Name of the package file retrieved.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure all required path parameters are correctly provided and URL-encoded if necessary.
  • Verify that the GitLab API key credential has sufficient permissions to access the project and package files.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.
  • Common errors include 404 Not Found if the project or package file does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion