GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation performs an API call to erase a specific job in a GitLab project. It targets the GitLab API endpoint for erasing jobs by project ID and job ID. This is useful for automating the cleanup of job records in GitLab projects, such as removing outdated or failed CI/CD jobs.

Use Case Examples

  1. Automate the removal of old CI/CD jobs in a GitLab project to keep the job list clean.
  2. Erase a specific job after its artifacts are no longer needed to save storage space.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API call.
Authentication The authentication method used for the API call, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method used for the API call, defaulting to POST.
Path Parameters The path parameters required for the API call, including the project ID and job ID to specify which job to erase.

Output

JSON

  • response - The JSON response from the GitLab API after erasing the specified job.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and job ID are correct and exist in the GitLab instance to avoid 404 errors.
  • Verify that the API key used has sufficient permissions to erase jobs in the specified project.
  • If authentication is skipped, the API call will likely fail unless the GitLab instance allows unauthenticated access for this operation.

Links

Discussion