Install SonarQube on your infrastructure and configure it to meet your code analysis requirements.
Generate a token for your Jenkins pipeline to authenticate with SonarQube.
Don’t forget to add a new stage to the Jenkinsfile to analyze the code quality using SonarQube before building and deploying the application.