GitLab API

GitlabTool

Actions1000

Overview

This node operation allows downloading a NuGet package from a specific GitLab project using the GitLab API. It is useful for automating the retrieval of NuGet packages hosted in GitLab projects, which can be integrated into CI/CD pipelines or package management workflows. For example, a developer can use this node to programmatically download a specific version of a NuGet package by specifying the project ID and package name.

Use Case Examples

  1. Download a NuGet package named 'mynugetpkg.1.3.0.17.nupkg' from a GitLab project with ID '12345'.
  2. Automate the retrieval of NuGet packages during a build process by specifying the project and package details.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request. If true, no authentication is used.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Query Parameters Query parameters for the request, specifically the NuGet package name to download.
Path Parameters Path parameters for the request, specifically the project ID.

Output

JSON

  • id - The ID or URL-encoded path of the GitLab project.
  • package_name - The NuGet package name to download.

Dependencies

  • GitLab API authentication

Troubleshooting

  • Ensure the project ID and package name are correctly specified and URL-encoded if necessary.
  • If authentication is required, verify that the GitLab API credentials are correctly configured and valid.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.
  • Common error messages may include 404 Not Found if the project or package does not exist, or 401 Unauthorized if authentication fails.

Discussion