GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves pipeline information for a specific package within a GitLab project using the GitLab API. It is useful for users who want to monitor or analyze the CI/CD pipelines associated with a particular package in their GitLab projects. For example, a DevOps engineer might use this node to fetch pipeline statuses or details for a package to automate deployment workflows or generate reports.

Use Case Examples

  1. Fetch pipelines for package ID 123 in project 'my-project' to monitor build statuses.
  2. Retrieve paginated pipeline data for a package to analyze CI/CD performance over time.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the API request (GET, POST, PUT, DELETE, HEAD, PATCH).
Query Parameters Optional query parameters to control pagination and cursor for the API request.
Path Parameters Required path parameters to specify the project and package IDs.

Output

JSON

  • pipelines - List of pipeline objects associated with the specified package in the project.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project ID and package ID path parameters are correctly set and URL-encoded if necessary.
  • Verify that the GitLab API credentials are valid and have sufficient permissions to access project package pipelines.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct.
  • Pagination parameters (page, per_page) must be within allowed ranges; per_page maximum is 20.

Links

Discussion