Setup a SonarQube scan using Jenkins declarative pipelines. Find out how to use the withSonarQubeEnv method and configure a quality gate using waitForQualityGate.
Jenkins
One post with this tag
One post with this tag