How to get enable the option to fail the build on Quality gate failure on 4.0 version of Prepare analysis of SonarQube task in AzureDevOps

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) (5.3)
  • what are you trying to achieve :Implement Quality Gates in CI CD Pipeline , if the quality gate fails, then the CI build must fail on Azure DevOps
  • what have you tried so far to achieve this:See it enabled on 3.0 version of Prepare Analysis task