GitLab API

GitlabTool

Actions1000

Overview

This node operation allows users to upload or update a Debian package file in a specific GitLab project using the GitLab API. It is useful for automating package management workflows within GitLab projects, such as deploying new versions of Debian packages directly from an automation pipeline.

Use Case Examples

  1. Uploading a new Debian package file to a GitLab project to make it available for installation.
  2. Updating an existing Debian package file in a GitLab project as part of a CI/CD pipeline.

Properties

Name Meaning
Skip Authentication Option to skip API authentication, useful for public or unauthenticated requests.
Authentication Type of authentication to use, default is GitLab API key authentication.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET but can be set to PUT for this operation.
Path Parameters Parameters to specify the project ID or URL-encoded path and the Debian package filename to upload or update.

Output

JSON

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

Dependencies

  • GitLab API key credential 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 or update packages in the project.
  • Check the base URL to ensure it points to the correct GitLab instance.
  • If skipping authentication, confirm that the GitLab instance allows unauthenticated package uploads, which is uncommon.

Links

Discussion