GitLab API

GitlabTool

Actions1000

Overview

This node operation interacts with the GitLab API to retrieve a specific Maven package file from a group repository. It is useful for automating the download or inspection of Maven package files stored within GitLab groups, such as fetching a JAR or other artifact by specifying the group ID, package path, and file name.

Use Case Examples

  1. Automatically download a Maven package file from a GitLab group during a CI/CD pipeline.
  2. Fetch metadata or contents of a specific Maven artifact stored in a GitLab group repository for auditing or deployment purposes.

Properties

Name Meaning
Skip Authentication Option to bypass authentication when making the API request.
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 required for the API endpoint, including the group ID and the package file name.

Output

JSON

  • id - The group ID or URL-encoded path used in the request.
  • path - The package path query parameter specifying the Maven package location.
  • file_name - The Maven package file name requested.

Dependencies

  • GitLab API authentication token or API key credential

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 Maven package in the specified group.
  • Check the base URL if using a self-hosted GitLab instance to avoid connection errors.

Links

Discussion