GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves a specific Maven package file from the GitLab API (version 4). It is useful for automating the download or inspection of Maven package files stored in GitLab repositories, particularly in CI/CD pipelines or package management workflows. For example, it can be used to fetch a JAR file of a specific version from a Maven repository hosted on GitLab.

Use Case Examples

  1. Downloading a Maven package file for deployment or testing.
  2. Automating package retrieval in a build pipeline.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication when making the API request.
Authentication Specifies the authentication method to use if authentication is not skipped.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method The HTTP method used for the API request (GET, POST, PUT, DELETE, HEAD, PATCH).
Query Parameters Query parameters for the API request, including the 'path' which specifies the package path in the Maven repository.
Path Parameters Path parameters for the API request, including 'file_name' which specifies the Maven package file name to retrieve.

Output

JSON

  • response - The raw response from the GitLab API containing the requested Maven package file data.

Dependencies

  • GitLab API authentication credentials

Troubleshooting

  • Ensure the 'path' query parameter and 'file_name' path parameter are correctly specified and match the Maven package location and file name in GitLab.
  • If authentication is enabled, verify that the GitLab API credentials are valid and have sufficient permissions to access the package.
  • Check the baseUrl to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.
  • Common errors include 404 Not Found if the package or file does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion