GitLab API

GitlabTool

Actions905

Overview

This node interacts with the GitLab API to retrieve the test report of a specific pipeline within a project. It is useful for DevOps and development teams who want to programmatically access pipeline test results for continuous integration and delivery workflows. For example, it can be used to fetch test reports to monitor build quality or trigger further automation based on test outcomes.

Use Case Examples

  1. Fetch the test report for pipeline ID 18 in project ID 11 to analyze test results automatically.
  2. Integrate with a CI/CD dashboard to display pipeline test reports from GitLab projects.

Properties

Name Meaning
Skip Authentication Whether to skip authentication when making 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.
Method The HTTP method used for the API request, default is GET.
Path Parameters Parameters used in the API request path to specify the project and pipeline.

Output

JSON

  • test_report - The test report data retrieved from the specified pipeline in the project.

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 the project and pipeline data.
  • Check the base URL to confirm it points to the correct GitLab instance, especially if using a self-hosted GitLab server.
  • Common error messages include authentication failures (401 Unauthorized) and resource not found (404 Not Found), which can be resolved by verifying credentials and resource identifiers respectively.

Links

Discussion