GitLab API

GitlabTool

Actions905

Overview

This node operation deletes the dependency proxy cache for a specific group in GitLab. It is useful for clearing cached dependencies that might be outdated or causing issues in your group's projects. For example, if you want to force GitLab to fetch fresh dependency data for a group, you can use this operation to clear the cache.

Use Case Examples

  1. Deleting the dependency proxy cache for a group identified by its ID to resolve dependency-related build issues.
  2. Automating cache clearing as part of a CI/CD pipeline to ensure the latest dependencies are used.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request.
Authentication The authentication method used for the request, typically an API key credential.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method used for the request, default is GET but DELETE is used for this operation.
Path Parameters Parameters included in the request path, specifically the group ID for which the cache is deleted.

Output

JSON

  • statusCode - HTTP status code of the response indicating success or failure.
  • body - Response body from the GitLab API after deleting the cache, typically empty or confirmation message.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the group ID provided in the path parameters is correct and accessible by the authenticated user.
  • Verify that the authentication credentials are valid and have sufficient permissions to delete the dependency proxy cache.
  • Check the base URL to ensure it points to the correct GitLab instance if using a self-hosted GitLab server.

Links

Discussion