Jenkins plugin to integrate with Sonarqube quality gate

I have installed Jenkins plugin “Quality gate” in Jenkins UI.
But it is not working properly and throwing error. For one of my requirement, can we integrate Quality gate with Jenkins because based on the quality gate, Jenkins build should be either pass or fail.

It appears the plugin you mention is 7 years old, unmaintained (with at least open security issue). There is a more recent Jenkins Sonarqube plugin that should answer your need.