GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves a specific Debian package file from a GitLab group repository using the GitLab API. It is designed to fetch Debian package files based on detailed parameters such as group ID or path, Debian distribution codename, component, architecture, and the SHA256 hash of the file. This operation is useful for automating the retrieval of Debian package files in CI/CD pipelines or package management workflows within GitLab.

Use Case Examples

  1. Fetch a Debian package file for a specific distribution and architecture by providing the group ID, distribution codename, component, architecture, and file SHA256 hash.
  2. Automate the download of Debian package files from a GitLab group repository for deployment or analysis.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
Authentication The authentication method used for the API request, typically a GitLab API key.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method used for the API request, default is GET.
Query Parameters Query parameters for the API request, specifically the Debian distribution codename or suite.
Path Parameters Path parameters for the API request including group ID or path, Debian component, architecture, and the SHA256 hash of the file.

Output

JSON

  • id - The group ID or full group path.
  • distribution - The Debian Codename or Suite.
  • component - The Debian Component.
  • architecture - The Debian Architecture.
  • file_sha256 - The SHA256 hash of the Debian package file.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the group ID or full group path is correct to avoid 404 errors.
  • Verify the SHA256 hash is accurate to retrieve the correct file.
  • Check that the authentication token has sufficient permissions to access the group packages.
  • If skipping authentication, ensure the GitLab instance allows anonymous access to the package files.

Discussion