GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves pipeline information for a specific package within a GitLab project using the GitLab API v4. It is useful for users who want to monitor or analyze the CI/CD pipelines associated with a package in a project, such as checking pipeline statuses or fetching pipeline details for automation or reporting purposes.

Use Case Examples

  1. Fetch pipelines for a package in a project to monitor CI/CD status.
  2. Retrieve pipeline data to integrate with a custom dashboard or reporting tool.

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 to which the API request is sent.
Method The HTTP method used for the API request.
Parameter Schema Defines the parameters required and optional for the API request, including project ID, package ID, pagination, and cursor for record navigation.
Request Body Schema Schema for the request body if applicable (null for this GET operation).
Request Path The API endpoint path template used for the request.
Query Parameters Optional query parameters for pagination and cursor-based navigation in the API request.
Path Parameters Required path parameters including the project ID and package ID to specify the target resource.

Output

JSON

  • response - The JSON response from the GitLab API containing pipeline information for the specified package in the project.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID and package ID are correctly specified and URL-encoded if necessary.
  • Verify that the API authentication credentials are valid and have sufficient permissions to access the project and package pipelines.
  • Check the base URL to ensure it points to the correct GitLab instance.
  • Pagination parameters (page, per_page) must be within allowed ranges; per_page maximum is 20.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated access to the requested resource.

Links

Discussion