Sonarqube integration into Jenkins CI/CD

Hi - My SonarQube scans are no longer updating on the web dashboard when I run the sonar scan in my Jenkins pipeline. Both the master branch and the development branch have been out of sync.

Here is my jenkinsfiles code to run the sonar scan:

node(agent) {
         stage('Sonar Analysis') {
          checkoutRepo{}
          container('sonar') {
            sonarScan {
              projectKey = <taken from dashboard>
              applicationName = 'service-virtualization'
              projectVersion = imageVersion
              sonarLanguage = 'javascript'
            }
          }
        }
      }
        checkpoint 'sonar analysis'
       
    }

Hey there.

This looks fairly custom. It’s not the syntax of the SonarQube extension for Jenkins. Where is it coming from?

I also assume that your Jenkins logs is giving you output from the scanner. Does it indicate the scanner is successful, and uploading results to the expect URL?

INFO: ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard?id=astrol_test_new_111
INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
INFO: More about the report processing at http://localhost:9000/api/ce/task?id=AXe4iFlnQzTq-Ym4lZGD