Prerequisites
The connector should already be set up, with a Connector Profile and a Linked Account. See Getting Started on the SonarQube Cloud connector page.Subscribe via the StackOne dashboard
This connector uses Programmatic Webhooks. StackOne creates one organization-level webhook in SonarQube Cloud when you enable events, so you don’t configure anything in SonarQube Cloud.
Confirm permissions
Check that the user who created the Personal Access Token has Administer permission on the SonarQube Cloud organization.
Enable events in the StackOne dashboard
In the StackOne dashboard, open the SonarCloud connector profile and enable the webhook events you want. You can turn individual event types on or off later without changing anything in SonarQube Cloud.
Verify delivery
Run an analysis on a project in SonarQube Cloud and check that the event reaches your endpoint.
Stop deliveries
Disconnect the account in StackOne. StackOne deletes its webhook from SonarQube Cloud.
Analysis outcome events
Sent when a CI/CD analysis finishes, including failed and canceled runs. Every event carries taskId, status, analysedAt, revision, project, branch, qualityGate (when evaluated) and properties.
- Project Analysis Completed (
project_analysis_completed) — the analysis succeeded without anOKorERRORquality gate result. - Project Analysis Failed (
project_analysis_failed) — the analysis failed (status: FAILED). - Project Analysis Canceled (
project_analysis_canceled) — the analysis was canceled (status: CANCELED).
Quality gate events
Sent when a successful analysis produces a quality gate result.
- Quality Gate Passed (
quality_gate_passed) — the quality gate result isOK. Carries thequalityGatewith its evaluated conditions. - Quality Gate Failed (
quality_gate_failed) — the quality gate result isERROR. Carries thequalityGatewith its evaluated conditions.