GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves a specific RubyGem package file from a GitLab project using the GitLab API. It is useful for developers or DevOps engineers who need to programmatically access RubyGem package files stored in GitLab projects, for example, to automate package downloads or integrate package management into CI/CD pipelines.

Use Case Examples

  1. Download a RubyGem package file from a GitLab project by specifying the project ID and the package file name.
  2. Automate retrieval of RubyGem packages for deployment or testing purposes within a GitLab-hosted project.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, typically a GitLab API key credential.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, default is GET.
Path Parameters Parameters required in the API path to identify the project and the RubyGem package file.

Output

JSON

  • id - The ID or URL-encoded path of the GitLab project.
  • file_name - The RubyGem package file name.
  • response - The API response containing the RubyGem package file data.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and file name are correctly specified and URL-encoded if necessary.
  • Verify that the GitLab API key credential has sufficient permissions to access the project and package files.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated access to the package files.

Links

Discussion