SonarCloud with Docker

You can add sonar.qualitygate.wait=true to the analysis to wait for the Quality Gate and fail the build if it fails, but if you’re looking to populate the build property (and make it look exactly like the task does), you’ll need to dig into the code of the task and recreate it in a script.