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'
}