GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves the test report for a specific pipeline within a GitLab project using the GitLab API. It is useful for developers and DevOps engineers who want to programmatically access the results of pipeline test runs to monitor CI/CD pipeline health and quality. For example, it can be used to fetch test reports to trigger notifications or further automated actions based on test outcomes.

Use Case Examples

  1. Fetch the test report of pipeline ID 18 in project ID 11 to analyze test results programmatically.
  2. Integrate with a monitoring system to alert the team if pipeline tests fail by retrieving the test report via this node.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to which the API request is sent, defaulting to https://gitlab.com.
Method The HTTP method used for the API request, defaulting to GET.
Path Parameters Parameters specifying the project ID or URL-encoded path and the pipeline ID to identify the specific pipeline test report to retrieve.

Output

JSON

  • test_report - The test report data for the specified pipeline in the project, including details about test results.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and pipeline ID are correct and exist in the GitLab instance.
  • Verify that the API key credential has sufficient permissions to access pipeline test reports.
  • Check the base URL to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab.
  • Common error messages include 404 Not Found if the project or pipeline does not exist, and 401 Unauthorized if authentication fails. Verify credentials and permissions to resolve these.

Links

Discussion