SonarQube icon

SonarQube

Consume SonarQube and SonarCloud Web API

Actions8

Quality Gate → Get Many

AI-generated

Overview

This node interacts with the SonarQube and SonarCloud Web APIs to retrieve data related to quality gates, projects, issues, and measures. Specifically, the 'Quality Gate - Get Many' operation fetches a list of quality gates, optionally filtered by organization. This is useful for users who want to monitor or analyze the quality gates configured in their SonarQube or SonarCloud environment, for example, to automate quality gate status checks or integrate quality gate data into other workflows.

Use Case Examples

  1. Retrieve all quality gates for a specific organization in SonarCloud to monitor code quality thresholds.
  2. Fetch quality gates to display or log their configurations as part of a CI/CD pipeline reporting process.

Properties

Name Meaning
Additional Fields Optional parameters to filter or specify additional details for the request, such as the organization key for SonarCloud.

Output

JSON

  • id - Unique identifier of the quality gate.
  • name - Name of the quality gate.
  • isDefault - Indicates if the quality gate is the default one.
  • conditions - List of conditions that define the quality gate criteria.

Dependencies

  • SonarQube or SonarCloud API

Troubleshooting

  • Ensure the API credentials (server URL and authentication token) are correctly configured and have sufficient permissions to access quality gate data.
  • If no quality gates are returned, verify the organization key if using SonarCloud, or check that quality gates exist in the SonarQube instance.
  • Handle API rate limits or network issues by enabling 'Continue On Fail' to avoid workflow interruption.

Links

Discussion