GitLab API icon

GitLab API

Gitlab

Actions880

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 continuous integration and deployment pipelines that handle Debian packages.

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 to distribute a new version.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated endpoints.
Authentication Select the authentication method to use, typically an API key credential for GitLab.
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 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

  • statusCode - HTTP response status code indicating the result of the upload or update operation.
  • body - The response body containing details about the uploaded or updated Debian package.

Dependencies

  • GitLab API authentication token or API key credential

Troubleshooting

  • Ensure the project ID and file name are correctly specified and URL-encoded if necessary.
  • Verify that the authentication token has sufficient permissions to upload or update packages in the specified project.
  • Check the base URL to ensure it points to the correct GitLab instance.
  • Common errors include 401 Unauthorized (authentication issues), 404 Not Found (incorrect project ID or file name), and 400 Bad Request (invalid request payload).

Links

Discussion