GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation allows users to authorize a Maven package file upload to a specific GitLab project via the GitLab API. It is useful for automating the process of uploading and authorizing Maven package files in CI/CD pipelines or project management workflows. For example, a user can authorize a package file named 'mypkg-1.0-SNAPSHOT.pom' to be uploaded to a project identified by its ID or URL-encoded path.

Use Case Examples

  1. Automate Maven package uploads in a GitLab project during CI/CD.
  2. Authorize specific Maven package files for deployment or distribution within a GitLab project.

Properties

Name Meaning
Skip Authentication If set to true, the node will skip 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 used for the request, defaulting to GET but can be set to PUT for this operation.
Path Parameters Parameters required in the request path to identify the project and the Maven package file name.

Output

JSON

  • response - The JSON response from the GitLab API after authorizing the Maven package file upload.

Dependencies

  • Requires GitLab API key credential for authentication.

Troubleshooting

  • Ensure the project ID and file name are correctly specified and URL-encoded if necessary.
  • Authentication errors may occur if the GitLab API key is missing or invalid; verify credentials.
  • HTTP method must be set to PUT for this authorization operation; using other methods may cause errors.

Links

Discussion