GitLab API icon

GitLab API

Gitlab

Actions917

Overview

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

Use Case Examples

  1. Fetch artifacts from a job in a project to analyze build outputs.
  2. Automate downloading of deployment packages from CI jobs for further processing.

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, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, default is GET.
Parameter Schema Defines the required path and query parameters for the API call, including project ID, job ID, and optional job token for multi-project pipelines.
Request Path The API endpoint path template for fetching job artifacts.
Query Parameters Optional query parameters for the request, such as job_token for multi-project pipeline triggers.
Path Parameters Path parameters specifying the project ID and 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 authentication credential

Troubleshooting

  • Ensure the project ID and job ID are correctly specified and URL-encoded if necessary.
  • Verify that the authentication credentials are valid and have sufficient permissions to access the project and job artifacts.
  • If using job_token, confirm that the GitLab tier supports multi-project pipeline triggers and the token is correct.

Links

Discussion