GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves a specific RubyGem package file from a GitLab project using the GitLab API v4. It is useful for automating the download or inspection of RubyGem packages stored in GitLab projects, for example, in CI/CD pipelines or package management workflows.

Use Case Examples

  1. Download a RubyGem package file from a project to verify its contents.
  2. Automate retrieval of RubyGem packages for deployment or testing.

Properties

Name Meaning
Skip Authentication If true, the node will skip using authentication for the API request.
Authentication The authentication method to use for the API request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to GET.
Path Parameters Parameters to specify the project ID and the RubyGem file name to retrieve.

Output

JSON

  • id - The ID or URL-encoded path of the project used in the request.
  • file_name - The RubyGem file name requested from the project.
  • response - The response data containing the RubyGem package file content or metadata.

Dependencies

  • Requires GitLab API key credential for authentication unless skipping authentication.

Troubleshooting

  • Ensure the project ID and file name are correctly specified and URL-encoded if necessary.
  • Verify that the GitLab API key has sufficient permissions to access the project and packages.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated access to the package files.
  • Common errors include 404 Not Found if the project or file does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion