GitLab API

GitlabTool

Actions905

Overview

This node operation allows users to upload RubyGem packages to a specific project in GitLab via the GitLab API. It is useful for automating the publishing of RubyGem packages directly to a GitLab project's package registry, facilitating continuous integration and deployment workflows for Ruby projects.

Use Case Examples

  1. Uploading a new RubyGem package to a GitLab project to make it available for use in other projects.
  2. Automating the release process of RubyGem packages by integrating this node in a CI/CD pipeline.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used for the request, defaulting to GitLab API key authentication.
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 POST is used for this operation.
Path Parameters Parameters to specify the project ID in the API path.

Output

JSON

  • id - The ID or URL-encoded path of the project where the RubyGem package is uploaded.
  • packageDetails - Details of the uploaded RubyGem package returned by the GitLab API.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and accessible with the authenticated user.
  • Verify that the RubyGem package data in the request body is correctly formatted according to GitLab API specifications.
  • Check network connectivity and GitLab instance availability if requests fail.
  • Authentication errors may occur if the API key is missing, invalid, or lacks necessary permissions.

Links

Discussion