Created
January 22, 2020 18:44
-
-
Save cesartalves/ced7587d6f4d94f5b2823d4474beb376 to your computer and use it in GitHub Desktop.
Install sonar-scanner on server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# run as sudo to have access to /opt or change the directory | |
# check docks for additional info | |
# https://docs.sonarqube.org/latest/analysis/scan/sonarscanner/ | |
curl -o /opt/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.2.0.1873-linux.zip | |
cd /opt/ | |
unzip sonar-scanner.zip | |
mv sonar-scanner-4.2.0.1873-linux sonar-scanner | |
export PATH=/opt/sonar-scanner/bin:$PATH | |
sonar-scanner -h | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment