GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation downloads job artifacts from a specific project in GitLab using the GitLab API. It is useful for automating the retrieval of build or test artifacts generated by CI/CD jobs in GitLab projects. For example, it can be used to fetch compiled binaries, test reports, or deployment packages from a particular branch or tag of a project.

Use Case Examples

  1. Automate downloading of build artifacts from a CI job for further processing or deployment.
  2. Retrieve test result artifacts from a specific branch to integrate with other quality assurance tools.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request.
Authentication The authentication method used, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to GET.
Query Parameters Parameters sent as query string in the request URL.
Path Parameters Parameters included in the URL path to specify the project and reference.

Output

JSON

  • artifact - The downloaded job artifact file content or metadata.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and reference name are correct and URL-encoded if necessary.
  • Verify that the job name specified exists and has artifacts available for download.
  • If using job_token, confirm that the GitLab tier supports multi-project pipeline triggers and the token is valid.
  • Authentication errors may occur if the API key is missing or invalid; ensure proper credentials are configured.

Links

Discussion