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 automating the download or inspection of package files such as conanfile.py, conanmanifest.txt, or conaninfo.txt from a project's Conan package repository. Practical examples include CI/CD pipelines that need to verify package contents or automate package management tasks.

Use Case Examples

  1. Download the conaninfo.txt file for a specific Conan package version to verify build information.
  2. Fetch the conanfile.py to inspect the recipe used for a Conan package in a GitLab project.

Properties

Name Meaning
Skip Authentication Option 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 request, default is GET.
Path Parameters Parameters required to specify the exact Conan package file to retrieve, including project ID, package name, version, username, channel, recipe revision, package reference, package revision, and file name.

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 if using a self-hosted GitLab instance to ensure it is correct.
  • Common errors include 404 Not Found if the package or file does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion