GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation allows uploading or updating a generic package file in a GitLab project using the GitLab API. It is useful for managing package files within a project's package registry, enabling automation of package file uploads or updates directly from n8n workflows. For example, it can be used to upload a new version of a package file to a specific project or update an existing package file in the GitLab generic package registry.

Use Case Examples

  1. Uploading a new package file to a GitLab project for distribution.
  2. Updating an existing package file in the GitLab generic package registry as part of a CI/CD pipeline.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API 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, defaulting to PUT for this operation.
Path Parameters Parameters to specify the project ID or URL-encoded path, package name, and package file name for the API request.

Output

JSON

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

Dependencies

  • Requires GitLab API key credentials for authentication unless skipping authentication.

Troubleshooting

  • Ensure the project ID, package name, and file name are correctly specified to avoid 404 errors.
  • Authentication errors may occur if the API key is missing or invalid; verify credentials.
  • Check that the base URL is correct for self-hosted GitLab instances to avoid connection issues.

Links

Discussion