GitLab API icon

GitLab API

Gitlab

Actions917

Overview

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

Use Case Examples

  1. Download a Maven package file from a GitLab project to use in a CI/CD pipeline.
  2. Fetch a specific version of a Maven artifact stored in GitLab for analysis or backup.

Properties

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

Output

JSON

  • id - The ID or URL-encoded path of the GitLab project.
  • path - The Maven package path within the project.
  • file_name - The name of the Maven package file being retrieved.

Dependencies

  • GitLab API authentication token or API key credential

Troubleshooting

  • Ensure the project ID and file name are correctly URL-encoded to avoid 404 errors.
  • Verify that the authentication token has sufficient permissions to access the project and its packages.
  • Check the base URL if using a self-hosted GitLab instance to avoid connection errors.

Links

Discussion