I’m running multiple parallel analysis (in bunch of ~10) of java and C++ projects on Jenkins with Linux and Windows agents.
Java 11.0.3 AdoptOpenJDK (64-bit)
Windows Server 2019 10.0 amd64
User cache: C:\Users\s.yggbuild.sonar\cache
On Windows Java analysis fail with error:
**Error during SonarScanner execution** org.sonarsource.scanner.api.internal.ScannerException: Unable to execute SonarScanner analysis at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$createLauncher$0(IsolatedLauncherFactory.java:85) ... **Caused by: java.lang.IllegalStateException: Fail to move** C:\Users\s.yggbuild\.sonar\cache\_tmp\fileCache10862709070534572633.tmp to C:\Users\s.yggbuild\.sonar\cache\0816184471131ebed73ed8f48b9bbc8e\sonar-scanner-engine-shaded-18.104.22.168237-all.jar ... Caused by: java.nio.file.AccessDeniedException: C:\Users\s.yggbuild\.sonar\cache\_tmp\fileCache10862709070534572633.tmp -> C:\Users\s.yggbuild\.sonar\cache\0816184471131ebed73ed8f48b9bbc8e\sonar-scanner-engine-shaded-22.214.171.124237-all.jar
C++ scans are instead always successful.
Interestingly, parallel scans run without problems on Linux agents.
I did not find anything against the parallel analysis execution in the documentation.
If this is a BUG, Is there anything you can suggest that may let use the cache in this situation?
As a workaround I though to use a different cache for each project, but unfortunately this is not possible due to the cache size and the total amount of projects to be scanned (358M x 100).
Any help would be appreciated !