GitLab API

GitlabTool

Actions1000

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 versioning and file management. For example, it can be used to upload a new version of a package file or replace an existing one in a specific project.

Use Case Examples

  1. Uploading a new version of a generic package file to a GitLab project.
  2. Updating an existing package file in the project's package registry.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but can be set to POST, PUT, DELETE, HEAD, or PATCH.
Path Parameters Parameters required in the request path to identify the project, package, and file.

Output

JSON

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

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project ID, package name, and file name are correctly specified to avoid 404 errors.
  • Authentication errors may occur if the API token is missing or invalid; verify credentials.
  • Check that the HTTP method is set to PUT for updating or uploading the package file as required by the API.

Links

Discussion