Hi, thanks for the answer!
It doesn’t work for me though. I’ve added the debug option and this is what I can see in the logs:
[DEBUG] Bootstrapper: Properties: {
'sonar.userHome': '/home/runner/.sonar',
'sonar.working.directory': 'apps/client/.scannerwork',
....
This is what I expected as I only set sonar.working.directory.
The relevant part is this I believe:
[DEBUG] Bootstrapper: Looking for Cached JRE
[INFO] Bootstrapper: No Cache found for JRE
[DEBUG] Bootstrapper: Creating Cache directory as it doesn't exist: /home/runner/.sonar/cache/bcb1b7b8ad68c93093f09b591b7cb17161d39891f7d29d33a586f5a328603707
[DEBUG] Bootstrapper: Starting download of JRE
[DEBUG] Bootstrapper: Downloading https://scanner.sonarcloud.io/jres/OpenJDK17U-jre_x64_linux_hotspot_17.0.11_9.tar.gz to /home/runner/.sonar/cache/bcb1b7b8ad68c93093f09b591b7cb17161d39891f7d29d33a586f5a328603707/OpenJDK17U-jre_x64_linux_hotspot_17.0.11_9.tar.gz
[DEBUG] Bootstrapper: Not using axios instance for https://scanner.sonarcloud.io/jres/OpenJDK17U-jre_x64_linux_hotspot_17.0.11_9.tar.gz
[INFO] Bootstrapper: Download starting...
[INFO] Bootstrapper: Download complete
[INFO] Bootstrapper: Downloaded JRE to /home/runner/.sonar/cache/bcb1b7b8ad68c93093f09b591b7cb17161d39891f7d29d33a586f5a328603707/OpenJDK17U-jre_x64_linux_hotspot_17.0.11_9.tar.gz
[DEBUG] Bootstrapper: Verifying checksum bcb1b7b8ad68c93093f09b591b7cb17161d39891f7d29d33a586f5a328603707
[ERROR] Bootstrapper: An error occurred: Error: ENOENT: no such file or directory, open '/home/runner/.sonar/cache/bcb1b7b8ad68c93093f09b591b7cb17161d39891f7d29d33a586f5a328603707/OpenJDK17U-jre_x64_linux_hotspot_17.0.11_9.tar.gz'
The SonarQube scan failed for project 'client'
Error: ENOENT: no such file or directory, open '/home/runner/.sonar/cache/bcb1b7b8ad68c93093f09b591b7cb17161d39891f7d29d33a586f5a328603707/OpenJDK17U-jre_x64_linux_hotspot_17.0.11_9.tar.gz'
I believe this is because my projects are running in parallel and the sonar.userHome is still /home/runner/.sonar for all projects so they all modify the same /home/runner/.sonar/cache folder.