GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves a specific Maven package file from the GitLab API. It is useful for scenarios where you need to download or access a particular Maven package artifact stored in a GitLab repository, such as fetching a JAR file for use in a build or deployment process.

Use Case Examples

  1. Downloading a Maven package file by specifying its path and file name to integrate with a CI/CD pipeline.
  2. Accessing a specific version of a Maven artifact stored in GitLab for dependency management.

Properties

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

Output

JSON

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

Dependencies

  • GitLab API authentication

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.
  • Verify that authentication credentials are valid and have sufficient permissions to access the Maven package.
  • Check the baseUrl to ensure it points to the correct GitLab instance if using a self-hosted GitLab server.

Links

Discussion