GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves a specific Maven package file from a GitLab group using the GitLab API. It is useful for automating the download or inspection of Maven package files stored within GitLab groups, such as fetching a particular JAR file for build or deployment processes.

Use Case Examples

  1. Automate downloading a Maven package file from a GitLab group to use in a CI/CD pipeline.
  2. Fetch a specific version of a Maven package file for auditing or analysis.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, 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.
Query Parameters Query parameters for the request, specifically the 'path' parameter indicating the package path.
Path Parameters Path parameters for the request, including 'id' for the group ID or URL-encoded path, and 'file_name' for the package file name.

Output

JSON

  • response - The response data from the GitLab API containing the requested Maven package file information or content.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the group ID and file name are correctly URL-encoded to avoid 404 errors.
  • Verify that the authentication token has sufficient permissions to access the group's packages.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.

Links

Discussion