GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves the pipelines associated with a specific merge request in a GitLab project using the GitLab API v4. It is useful for scenarios where you need to monitor or analyze the CI/CD pipelines triggered by a merge request, such as checking pipeline statuses or results for code review and integration purposes.

Use Case Examples

  1. Fetch all pipelines for a merge request to display their statuses in a dashboard.
  2. Automate notifications based on the pipeline results of a merge request.

Properties

Name Meaning
Skip Authentication Option to skip using authentication for the API request.
baseUrl The base URL of the GitLab instance to send the API request to.
Method HTTP method to use for the API request (GET, POST, PUT, DELETE, HEAD, PATCH).
Path Parameters Parameters to specify the project ID and merge request IID for the API endpoint.

Output

JSON

  • pipelines - List of pipelines associated with the specified merge request.

Dependencies

  • GitLab API authentication (an API key credential)

Troubleshooting

  • Ensure the project ID and merge request IID are correctly provided and URL-encoded if necessary.
  • Verify that the GitLab API token has sufficient permissions to access merge request pipelines.
  • Check the base URL to confirm it points to the correct GitLab instance.
  • Common error: 404 Not Found - occurs if the project or merge request does not exist or is inaccessible.
  • Common error: 401 Unauthorized - occurs if authentication is missing or invalid.

Links

Discussion