GitLab API

GitlabTool

Actions905

Overview

This node operation uploads or updates a Maven package file to a specific project in GitLab using the GitLab API. It is useful for automating the deployment of Maven artifacts to GitLab's package registry, enabling continuous integration and delivery workflows for Java projects.

Use Case Examples

  1. Uploading a new Maven package file to a GitLab project during a CI/CD pipeline.
  2. Updating an existing Maven package file in a GitLab project to distribute a new version of a library.

Properties

Name Meaning
Skip Authentication If true, the node will skip using authentication for the request.
Authentication The authentication method used for the request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, default is PUT for this operation.
Path Parameters Parameters used in the request path to specify the project and file name.

Output

JSON

  • response - The JSON response from the GitLab API after uploading or updating the Maven package file.

Dependencies

  • Requires GitLab API key credentials for authentication.

Troubleshooting

  • Ensure the project ID and file name are correctly specified and URL-encoded if necessary.
  • Verify that the GitLab API key has sufficient permissions to upload packages to the project.
  • Check the baseUrl is correct if using a self-hosted GitLab instance.
  • Common errors include authentication failures, permission denied, or file not found errors if the path parameters are incorrect.

Links

Discussion