GitLab API

GitlabTool

Actions1000

Overview

This node operation allows downloading a specific release asset file from a GitLab project by specifying the project ID or URL-encoded path, the release tag name, and the direct path to the asset file. It is useful for automating the retrieval of release files from GitLab projects, such as binaries, archives, or other release-related assets.

Use Case Examples

  1. Automatically download the latest release asset from a GitLab project for deployment.
  2. Fetch a specific release file from a project to integrate into a CI/CD pipeline.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
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 direct path to the asset file to download.
Path Parameters Path parameters for the request identifying the project and release tag.

Output

Binary

The node outputs the binary data of the downloaded release asset file.

JSON

  • id - The ID or URL-encoded path of the project used in the request.
  • tag_name - The Git tag name of the release used in the request.
  • direct_asset_path - The path to the release asset file being downloaded.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project ID and tag name are correctly URL-encoded and exist in the GitLab instance.
  • Verify that the direct asset path matches exactly the path specified when the release asset was created.
  • Check that the authentication credentials are valid and have sufficient permissions to access the release assets.
  • Common errors include 404 Not Found if the project, tag, or asset path is incorrect, and 401 Unauthorized if authentication fails.

Links

Discussion