Breaking the SonarQube Analysis with Jenkins jobs - No pipelines

Dear community,

Is there a way to break the sonarqube analysis with jenkins jobs.
I went through what is mentioned here Breaking the SonarQube Analysis with Jenkins Pipelines and could set up a pipeline and see that it is working fine.
Now on a org level, i want to find out if the same thing is possible via jenkins jobs and not through pipeline.
Is there a way to do this?

Hey there.

We recommend using pipelines, but adding sonar.qualitygate.wait=true to the SonarScanner step of a classic Jenkins job will also fail the job on Quality Gate failure.

hey Colin,
Thank you for responding.
That did not work,
this is my settings in sonarscanner “analysis properties” in my jenkins jobs.
sonar.projectKey=org.sonarqube:sonarqube-scanner
sonar.qualitygate.wait=true
sonar.java.binaries=.

In sonar, the project says failed, but my jenkins job is passing.
I want my jenkins job to fail as well