GitLab API

GitlabTool

Actions905

Overview

This node operation downloads a NuGet package from a specified GitLab project using the GitLab API. It is useful for automating the retrieval of NuGet packages hosted in GitLab projects, enabling integration with 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 for deployment or testing.

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 from GitLab for continuous integration processes.

Properties

Name Meaning
Skip Authentication Whether to skip authentication when making the API request.
Authentication The authentication method used for the API request, typically an API key credential for GitLab.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method used for the request, default is GET.
Query Parameters.package_name The name of the NuGet package to download, e.g., 'mynugetpkg.1.3.0.17.nupkg'.
Path Parameters.id The ID or URL-encoded path of the GitLab project from which to download the NuGet package.

Output

Binary

The node outputs the binary content of the downloaded NuGet package file.

JSON

  • id - The ID or URL-encoded path of the project from which the package was downloaded.
  • package_name - The name of the NuGet package downloaded.
  • download_url - The URL used to download the NuGet package.

Dependencies

  • GitLab API authentication token or API key credential

Troubleshooting

  • Ensure the project ID and package name are correctly specified and URL-encoded if necessary.
  • Authentication errors may occur if the API key or token is missing, invalid, or lacks sufficient permissions.
  • Network errors can happen if the base URL is incorrect or the GitLab instance is unreachable.
  • The node expects the package to exist in the specified project; if not found, an error will be returned.

Links

Discussion