Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
- what are you trying to achieve
- what have you tried so far to achieve this
Hi We are using 8.7 Community edition for doing the POC on Integration of Sonarqube and Travis CI . We have installed Sonarqube on our private server and we are trying to install the Scanner Plugin sonar-scanner-cli-4.6.0.2311-linux on our Travis. But it is not allowing to install the Sonarscanner. By mistake we have tried installing the previous version of scanner on travis it got installed. By using the same script we are trying to install the latest version but it is throwing error. Could you please help us on this.
Below is the script which we are using for installation of sonar scanner and the error which we are getting while installation. Thank you.
- wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.6.0.2311-linux.zip
- unzip sonar-scanner-cli-4.6.0.2311-linux.zip -d /tmp
script: - cat /home/travis/build/IGF/GAPTS/sonar-project.properties >> /tmp/sonar-scanner-cli-4.6.0.2311-linux/conf/sonar-scanner.properties
- /tmp/sonar-scanner-cli-4.6.0.2311-linux/bin/sonar-scanner -Dsonar.projectKey=#### -Dsonar.sources=. -Dsonar.host.url=#URL# -Dsonar.login=admin -Dsonar.password=######
Error:
$ cat /home/travis/build/IGF/GAPTS/sonar-project.properties >> /tmp/sonar-scanner-cli-4.6.0.2311-linux/conf/sonar-scanner.properties
/home/travis/.travis/functions: line 104: /tmp/sonar-scanner-cli-4.6.0.2311-linux/conf/sonar-scanner.properties: No such file or directory
The command “cat /home/travis/build/IGF/GAPTS/sonar-project.properties >> /tmp/sonar-scanner-cli-4.6.0.2311-linux/conf/sonar-scanner.properties” exited with 1.
0.01s$ /tmp/sonar-scanner-cli-4.6.0.2311-linux/bin/sonar-scanner -Dsonar.projectKey=###### -Dsonar.sources=. -Dsonar.host.url=URL -Dsonar.login=admin -Dsonar.password=####
/home/travis/.travis/functions: line 104: /tmp/sonar-scanner-cli-4.6.0.2311-linux/bin/sonar-scanner: No such file or directory
The command “/tmp/sonar-scanner-cli-4.6.0.2311-linux/bin/sonar-scanner -Dsonar.projectKey=###### -Dsonar.sources=. -Dsonar.host.url=URL -Dsonar.login=admin -Dsonar.password=####” exited with 127.