GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves a specific Debian package file from a GitLab project's Debian package pool using the GitLab API. It is useful for automating the download or inspection of Debian package files stored in GitLab repositories, especially in CI/CD pipelines or package management workflows.

Use Case Examples

  1. Fetch a Debian package file for a specific project and distribution to verify package contents.
  2. Automate downloading of Debian packages for deployment or testing from GitLab.

Properties

Name Meaning
Skip Authentication Whether to skip authentication when making the API request.
Authentication The authentication method used for the API request, typically an API key credential.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method The HTTP method used for the API request, default is GET.
Path Parameters Parameters required to specify the exact Debian package file to retrieve from the GitLab project.

Output

JSON

  • id - The ID or URL-encoded path of the project.
  • distribution - The Debian Codename or Suite.
  • letter - The Debian Classification (first-letter or lib-first-letter).
  • package_name - The Debian Source Package Name.
  • package_version - The Debian Source Package Version.
  • file_name - The Debian File Name.

Dependencies

  • GitLab API authentication token or API key credential

Troubleshooting

  • Ensure all required path parameters (id, distribution, letter, package_name, package_version, file_name) are correctly provided and URL-encoded if necessary.
  • Verify that the GitLab API token has sufficient permissions to access the project's packages.
  • Check the baseUrl is correctly set to the GitLab instance URL if using a self-hosted GitLab.
  • Common errors include 404 Not Found if the package or project does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion