node-sonar-scanner
node-sonar-scanner copied to clipboard
401 when downloading the sonar-scanner-cli
The path provided in this project to SonarQube's binary downloads is returning in a 401 as of October 7, 2018:
build 08-Oct-2018 19:31:52 [00:31:52] Starting SonarQube analysis...
build 08-Oct-2018 19:31:52 [00:31:52] Getting info from "package.json" file
build 08-Oct-2018 19:31:52 [00:31:52] Checking if executable exists: /home/bamboo/.sonar/native-sonar-scanner/sonar-scanner-3.2.0.1227-linux/bin/sonar-scanner
build 08-Oct-2018 19:31:52 [00:31:52] Could not find executable in "/home/bamboo/.sonar/native-sonar-scanner".
build 08-Oct-2018 19:31:52 [00:31:52] Proceed with download of the platform binaries for SonarQube Scanner...
build 08-Oct-2018 19:31:52 [00:31:52] Creating /home/bamboo/.sonar/native-sonar-scanner
build 08-Oct-2018 19:31:52 [00:31:52] Downloading from https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-3.2.0.1227-linux.zip
build 08-Oct-2018 19:31:52 [00:31:52] (executable will be saved in cache folder: /home/bamboo/.sonar/native-sonar-scanner)
error 08-Oct-2018 19:31:53 [00:31:53] ERROR: impossible to download and extract binary: Response code 401 (Unauthorized)
error 08-Oct-2018 19:31:53 [00:31:53] SonarQube Scanner binaries probably don't exist for your OS (linux).
error 08-Oct-2018 19:31:53 [00:31:53] In such situation, the best solution is to install the standard SonarQube Scanner (requires a JVM).
error 08-Oct-2018 19:31:53 [00:31:53] Check it out at https://redirect.sonarsource.com/doc/install-configure-scanner.html
Did you find the solution? I have same issue.
I'm getting this issue, but I already have it installed in another directory. I'm not sure how to point it to another directory.