GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves artifacts from a specific job within a GitLab project using the GitLab API. It is useful for automation workflows that need to access build or deployment artifacts generated by CI/CD jobs in GitLab projects. For example, it can be used to download test reports, compiled binaries, or other output files from a job run in a GitLab pipeline.

Use Case Examples

  1. Automate downloading of build artifacts after a CI job completes.
  2. Fetch deployment packages from a specific job in a project for further processing.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, default is GitLab API key.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Query Parameters Optional query parameters for the request, including job_token for multi-project pipeline triggers.
Path Parameters Required path parameters specifying the project ID or URL-encoded path and the job ID to identify the job whose artifacts are to be retrieved.

Output

JSON

  • artifacts - The artifacts data retrieved from the specified job in the project.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and job ID are correctly specified and exist in the GitLab instance.
  • Verify that the authentication credentials are valid and have sufficient permissions to access job artifacts.
  • If using job_token query parameter, ensure it is valid and the GitLab tier supports it (Premium or Ultimate).
  • Check network connectivity to the specified baseUrl.

Links

Discussion