Must-share information (formatted with Markdown):
- which versions are you using: SonarQube Developer Edition v9.9.6
- how is SonarQube deployed: Zip
- what are you trying to achieve: Updating Azure DevOps Integration from V4 to V6
Hi Team,
Having some trouble with updating our Azure DevOps plugins to use the newer SonarQubePrepare@v6 versions. The issue we are seeing is when we reach out to our Sonar Server, the task “Prepare Analysis Configuration” is attempting to download some files from urls that don’t appear to exist on our self hosted instance of SonarQube.
The Build output, from Azure DevOps is as followed.
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...
Hosted SonarQube Output
I have attempted to find these APIs in the Web API ‘https://sonarqube.xxxxxxx.com.au/web_api’ documentation of our SonarQube instance, they don’t appear to be present. In addition, when running these urls against the instance itself they are returning the following response.
https://sonarqube.xxxxxxx.com.au/api/v2/analysis/version
{
"errors": [
{
"msg": "Unknown url : /api/v2/analysis/version"
}
]
}
https://sonarqube.xxxxxxx.com.au/api/v2/analysis/jres?os=windows&arch=x64
{
"errors": [
{
"msg": "Unknown url : /api/v2/analysis/jres"
}
]
}
Are these APIs a part of a version of sonar that we don’t have(we run LTS). IE: We need to update?
Note: We are having no trouble running on the SonarQubePrepare@4 versions, but we are getting the deprecated warnings and want to update.