Triggering a Sonar Analysis with the Sonar Runner

Go to the 'Build' section, click on 'Add build step' and choose 'Invoke Standalone Sonar Analysis':

Configure the Sonar analysis. You can either point to an existing sonar-project.properties file or directly set the analysis properties in the 'Project properties' field:

 

 

Triggering a Sonar Analysis with Maven

 

On a Maven job, go to the 'Post-build Actions' section and click on 'Add post-build action':

Then configure this post-build action: