GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves the test report for a specific pipeline within a GitLab project. It is useful for developers and DevOps teams who want to programmatically access detailed test results of their CI/CD pipelines in GitLab. For example, it can be used to automate monitoring of pipeline test outcomes or integrate test reports into other tools or dashboards.

Use Case Examples

  1. Fetch the test report of pipeline ID 18 in project ID 11 to analyze test results automatically.
  2. Integrate GitLab pipeline test reports into a custom reporting dashboard for continuous integration monitoring.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
Authentication Type of authentication used for the API request, defaulting to GitLab API key.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method used for the API request, default is GET.
Path Parameters Parameters to specify the project ID or URL-encoded path and the pipeline ID for which the test report is requested.

Output

JSON

  • test_report - The test report data for the specified pipeline in the project

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and pipeline ID are correctly specified and exist in the GitLab instance.
  • Verify that the API key used for authentication has sufficient permissions to access pipeline test reports.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated access to the requested resource, which is uncommon.
  • Common error messages include 404 Not Found if the project or pipeline does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion