GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves specific Conan package files from a GitLab project using the GitLab API. It is useful for developers and DevOps engineers who need to programmatically access Conan package files such as conanfile.py, conanmanifest.txt, or conan_package.tgz stored in GitLab projects. For example, it can be used to automate the download of package metadata or binaries during CI/CD pipelines or package management workflows.

Use Case Examples

  1. Downloading the conanfile.py of a specific Conan package version from a GitLab project to verify package contents.
  2. Automating the retrieval of conan_package.tgz for deployment or testing purposes in a CI/CD pipeline.

Properties

Name Meaning
Skip Authentication Whether to skip authentication when making the API request.
baseUrl The base URL of the GitLab instance, 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 project and package details.

Output

JSON

  • fileContent - The content of the requested Conan package file retrieved from the GitLab project.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure all required path parameters are correctly provided and URL-encoded if necessary.
  • Verify that the GitLab API token has sufficient permissions to access the project and package files.
  • Check the baseUrl is correct and accessible.
  • Common errors include 404 Not Found if the project or package file does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion