GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves a specific Debian package file from a GitLab project's Debian package pool. 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. For example, it can be used to fetch a particular version of a Debian package for deployment or testing.

Use Case Examples

  1. Fetching a Debian package file by specifying the project ID, distribution codename, classification letter, package name, version, and file name.
  2. Automating the retrieval of Debian packages from GitLab for integration into a deployment pipeline.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication when making the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance to connect to, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to GET.
Path Parameters Parameters required to specify the exact Debian package file to retrieve.

Output

JSON

  • response - The HTTP response containing the Debian package file data or metadata.

Dependencies

  • GitLab API authentication 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 base URL is correct and accessible.
  • Check that the authentication credentials are valid and have sufficient permissions to access the project's Debian packages.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated access to the requested resource.
  • Common errors include 404 Not Found if the package or file does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion