I would like to download the latest sonar-scanner directly from the self hosted sonar server.
We run a CI and scan C/C++ code, and would like our pipelines to use a scanner which matches the Sonarqube server. As we are building C++ we can not use the offical sonar docker images.
Since the Server is updated centrally, the easiest way for us to obtain an automated of the scanner would be to download it from said server.
This is already implemented for the Buildwrapper (mysonarserver.net/static/cpp/build-wrapper-linux-x86.zip). It would be great if it would be just as easy to download the scanner.
I.e. the following should work:
curl -O mysonarserver.net/static/sonar-scanner-linux-x86.zip
This way, our CI pipelines can simply download the scanner on demand and be sure it matches the Sonarserver.
It would be even better if we could detect the Version by querying the server (i.e. curl -O mysonarserver.net/static/sonar-scanner-version should respond with “sonar-scanner 7.0.1”), so that we know if there is a new version, this way we could automatically build docker images in a nightly build when the version is updated.
This request is a refresh of How to download sonar scanner from the sonarqube server that is hosted