Azure pipeline and quality gate result variable

Hi, i´m using the “plublish quality gate result” task inside a Azure Devops Pipeline succesfully. But i have no way to read the quality-gate-status var in the following tasks.

How can i get result var?

Thanks in advance.

Starting: Publish Quality Gate Result

Task : Publish Quality Gate Result
Description : Publish SonarQube Server’s Quality Gate result on the Azure DevOps build result, to be used after the actual analysis.
Version : 7.1.1
Author : sonarsource
Help : More Information

[INFO] SonarQube Server: Server version: 25.1.0.102122
[INFO] SonarQube Server: Task 9805cdf0-6e3a-4390-afc3-075b5d1044f8 completed
[INFO] SonarQube Server: Overall Quality Gate status: ok
Finishing: Publish Quality Gate Result

Hey there.

The result is stored as a build property, sonarglobalqualitygate

Is that something you’re able to use in your other build steps?