SonarSource/sonar-scanner-msbuild

JRE provisioning: Don't try JRE provisioning for SQ <10.6

martin-strecker-sonarsource opened this issue · 0 comments

According to the spec, we try the /api/v2/analysis/jres first to discover the JRE version to download. This leads to a warning in the logs for SQ <10.6. We should consider doing the SQ/SC version detection request first before attempting to download the JRE. This would avoid the warning.
If this isn't possible, we should downgrade the warning to info or accompany it with a message that it can be safely ignored.

See also this community post https://community.sonarsource.com/t/119587

SonarScanner for MSBuild 7.1
Using the .NET Framework version of the Scanner for MSBuild
Pre-processing started.
Preparing working directories...
03:12:17.909  Updating build integration targets...
03:12:18.371  Downloading from https://sonarqube.xxxxxxx.com.au/api/v2/analysis/version failed. Http status code is NotFound.
03:12:18.793  Downloading from https://sonarqube.xxxxxxx.com.au/api/v2/analysis/jres?os=windows&arch=x64 failed. Http status code is NotFound.
03:12:18.803  03:12:18.803  WARNING: JRE Metadata could not be retrieved from analysis/jres?os=windows&arch=x64.
03:12:18.831  Downloading from https://sonarqube.xxxxxxx.com.au/api/v2/analysis/jres?os=windows&arch=x64 failed. Http status code is NotFound.
03:12:18.831  03:12:18.831  WARNING: JRE Metadata could not be retrieved from analysis/jres?os=windows&arch=x64.
03:12:18.839  Fetching analysis configuration settings...