Make sure to tell us:
- What version are you upgrading from? Clear install of LTS 9.9.1
- System information (Operating system, Java version, Database provider/version): Linux / Ubuntu 20.04, H2 database
- What’s the issue you’re facing? When setting up a job for scanning C code the new LTS 9.9.1 suggests this style for low-level interfacing as shown in the uploaded picture.
I note that using $HOME/.sonar/ is quite dangerous - since two scanner jobs running on the same machine for two gits will overwrite the same directory. I strongly encourage you to rewrite this e.g. like this - where a random number generator makes SOME_RANDOMNUMBER
export SONAR_SCANNER_ROOT=$HOME/.sonar/<SOME_RANDOMNUMBER>
curl --create-dirs -sSLo ${SONAR_SCANNER_ROOT}/build-wrapper-linux-x86.zip https://sonarqube-cph.dirac.services/static/cpp/build-wrapper-linux-x86.zip
unzip -o ${SONAR_SCANNER_ROOT}/build-wrapper-linux-x86.zip -d $HOME/.sonar/
export PATH=${SONAR_SCANNER_ROOT}/build-wrapper-linux-x86:$PATH
export SONAR_SCANNER_VERSION=4.7.0.2747
export SONAR_SCANNER_HOME=${SONAR_SCANNER_ROOT}/sonar-scanner-$SONAR_SCANNER_VERSION-linux
curl --create-dirs -sSLo ${SONAR_SCANNER_ROOT}/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip
unzip -o ${SONAR_SCANNER_ROOT}/sonar-scanner.zip -d $HOME/.sonar/
export PATH=$SONAR_SCANNER_HOME/bin:$PATH
export SONAR_SCANNER_OPTS="-server"