GitLab API

GitlabTool

Actions1000

Overview

This node operation deletes job artifacts from a specific job within a project in GitLab. It is useful for managing and cleaning up CI/CD job artifacts to save storage or remove outdated files. For example, a user can automate the deletion of artifacts from completed jobs in a project to maintain repository hygiene.

Use Case Examples

  1. Automate deletion of artifacts from a specific job in a GitLab project after the job completes.
  2. Clean up storage by removing artifacts from old jobs in a project using this node.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication The authentication method used for the request, defaulting to GitLab API key.
baseUrl The base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET but DELETE is relevant here.
Path Parameters Parameters for the API path including project ID and job ID to specify which job's artifacts to delete.

Output

JSON

  • success - Indicates if the deletion of job artifacts was successful.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and job ID are correct and exist in GitLab to avoid 404 errors.
  • Check that the API key has sufficient permissions to delete job artifacts.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated requests for this operation.

Links

Discussion