GitLab API

GitlabTool

Actions905

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. Downloading a Maven package file from a GitLab project to use in a CI/CD pipeline.
  2. Fetching a specific version of a Maven artifact stored in GitLab for analysis or deployment.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication when making 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 HTTP method to use for the request, default is GET.
Query Parameters Query parameters for the request, specifically the 'path' which is the package path in the Maven repository.
Path Parameters Path parameters for the request including 'id' (project ID or URL-encoded path) and 'file_name' (the Maven package file name to retrieve).

Output

JSON

  • id - The ID or URL-encoded path of the project.
  • path - The package path in the Maven repository.
  • file_name - The Maven package file name.

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