title: Sonar Analysis of website before deployment
body: <p>I currently have a website (consisting only of static files) and have currently automated the deployment of the website when changes are pushed to the master branch by using a Jenkins multibranch pipeline.</p>
  
  <p>I'm planning to add an extra set of validations before deployment, and I've come across <a href="https://github.com/sonarwhal/sonar" rel="nofollow noreferrer">Sonar</a>. Sonar can't be run on static files on its own; it requires these files to be served by a web server such as Apache2, because it also verifies HTTP headers.</p>
  
  <p>Consequently, as long as my changes are not deployed in production, I will not be able to run Sonar on a particular development branch, and would have to wait until the branch is merged into master to obtain the results.</p>
  
  <p>In this case, can you please give hints on how I can get validations results before deployment?</p>