SonarQube Developer Edition 9.9.1 LTS
Jenkins 2.414.1 LTS
SonarQube deployed inside Kubernetes with Docker image
Sonar-scanner: sonar-scanner-5.0.1.3006-linux
Hi Community.
We have faced with the issue during SonarQube background task:
{"task":{"id":"AYpXXXccsj","type":"REPORT","componentId":"AYpXXXccsc","componentKey":"ProjectName","componentName":"Project Name","componentQualifier":"TRK","status":"FAILED","submittedAt":"2023-08-31T17:34:20+0000","submitterLogin":"admin","startedAt":"2023-08-31T17:34:20+0000","executedAt":"2023-08-31T17:34:26+0000","executionTimeMs":6073,"errorMessage":"Validation of project failed:\n o Date of analysis cannot be older than the date of the last known analysis on this project. Value: \"2023-08-31T17:32:08+0000\". Latest analysis: \"2023-08-31T17:32:24+0000\". It\u0027s only possible to rebuild the past in a chronological order.","hasScannerContext":true,"pullRequest":"1403","warningCount":0,"warnings":[]}}
Initially, we thought that the SonarQube scans ran in parallel and it could be the cause of the issue, but as you can see on the screenshot below - scans ran by order, one by one:
Next scans in this pull request was successful:
I saw the similar topics in SonarQube Commuity and the reason of the issue was parallel Sonar Scans execution, but we don’t run the scans in parallel in our CI.
Could you please help to understand the root of this SonarQube behaviour?
Many thanks for your help!