GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation downloads a specific NuGet package file from a GitLab project using the GitLab API v4. 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 fetch a particular version of a NuGet package for deployment or testing.

Use Case Examples

  1. Downloading a NuGet package file by specifying the project ID, package name, version, and filename to integrate with a build pipeline.
  2. Automating the retrieval of NuGet packages from GitLab to ensure consistent package versions in development environments.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API request, typically an API key credential.
baseUrl The base URL of the GitLab instance to which the request is sent.
Method The HTTP method used for the request, default is GET.
Query Parameters Parameters specifying the NuGet package details to download.
Path Parameters Parameters specifying the project identifier.

Output

Binary

The node outputs the downloaded NuGet package file as binary data.

JSON

  • id - The project ID or path used in the request.
  • package_name - The name of the NuGet package requested.
  • package_version - The version of the NuGet package requested.
  • package_filename - The filename of the NuGet package requested.

Dependencies

  • Requires GitLab API authentication credentials (an API key or token).

Troubleshooting

  • Ensure the project ID and package details (name, version, filename) are correctly specified; otherwise, the package may not be found.
  • Authentication errors may occur if the API key is missing or invalid; verify credentials are correctly configured.
  • Network or permission issues on the GitLab instance may prevent package download; check access rights and network connectivity.

Links

Discussion