GitLab API

GitlabTool

Actions1095

Maven_packages → getApiV4ProjectsIdPackagesMaven*pathFileName

AI-generated

Summary

Download a Maven package file from a specified GitLab project using the file's path and name.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project from which to download the Maven package file.
  • path (required) — The full package path within the Maven repository (e.g., 'foo/bar/mypkg/1.0-SNAPSHOT').
  • file_name (required) — The name of the Maven package file to download (e.g., 'mypkg-1.0-SNAPSHOT.jar').
  • method (required) — The HTTP method to use; typically 'GET' to retrieve the package file.
  • baseUrl — Custom base URL for the GitLab API, defaults to 'https://gitlab.com'.
  • skipAuthentication — Optionally skip authentication if set to true (default is false).

Output shape

binary file

Returns the content of the specified Maven package file as a binary download. The response matches the raw file data served by GitLab's API endpoint '/api/v4/projects/{id}/packages/maven/*path/{file_name}'.

Examples

Example 1: Download a Maven JAR file from a GitLab project

Set 'id' to the project identifier, 'path' to the Maven package path, 'file_name' to the artifact filename, and 'method' to 'GET'. The node returns the raw file binary content that can be passed along to further workflow steps for storage, analysis, or deployment.

Links

Discussion