Must-share information (formatted with Markdown):
- which versions are you using: 2026.1
- how is SonarQube deployed: Zip
- what are you trying to achieve: Change location of Auto-provisioned JRE
- what have you tried so far to achieve this: Checking the documentation
We’re getting errors with auto-provisioning of the JRE because the location it downloads to is inside the Jenkins Workspace that we’re working inside.
It ends up in a folder F:/Jenkins_Node/workspace/OurFolderName/test-repos-dotnet-app\cache\39c5e23f3ce4d420663afba8ffde28034b72e2b3e240943dc2321bc1f912eef9\OpenJDK21U-jre_x64_windows_hotspot_21.0.9_10.zip_extracted\jdk-21.0.9+10-jre/bin/java.exe
Which is, obviously, quite long.
And if the name of the folder or the application gets much longer than that, then it exceeds the Windows maximum filename length.
I’m aware that we could use the SONAR_USER_HOME location - but it’s unclear exactly what files would then be placed in there, and I don’t want other files that we might not want to cache being left in there between runs.
Is there a way of storing just the cache somewhere central? Or is there something which explains which files are downloaded to the SONAR_USER_HOME folder?
Thanks!
Andy