GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves a specific RPM package file from a GitLab project using the GitLab API. It is useful for scenarios where you need to access or download a particular RPM package file by specifying the project ID, package file ID, and file name. For example, it can be used in CI/CD pipelines to fetch RPM packages for deployment or analysis.

Use Case Examples

  1. Fetching an RPM package file from a GitLab project by providing the project ID, package file ID, and file name.
  2. Automating the download of RPM packages in a deployment workflow.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
Authentication Type of authentication to use, 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.
Query Parameters Parameters to specify the RPM package file ID and file name for the request.
Path Parameters Parameter to specify the project ID or URL-encoded path of the project.

Output

JSON

  • id - The ID or URL-encoded path of the project used in the request.
  • package_file_id - The RPM package file ID specified in the query parameters.
  • file_name - The RPM package file name specified in the query parameters.
  • response - The response data from the GitLab API for the requested RPM package file.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID, package file ID, and file name are correctly specified and URL-encoded if necessary.
  • Verify that the GitLab API key credential is valid and has sufficient permissions to access the project and its packages.
  • Check the base URL to ensure it points to the correct GitLab instance.
  • Common error messages may include 404 Not Found if the project or package file does not exist, or 401 Unauthorized if authentication fails.

Links

Discussion