Keep on getting error Sonarqube has no rights to scan repository if I query the repositories we setup before the last one. The latest can be scanned, the others all give the same error:
119 `INFO: ------------------------------------------------------------------------`
120 `INFO: EXECUTION FAILURE`
121 `INFO: ------------------------------------------------------------------------`
122 `INFO: Total time: 16.499s`
123 `INFO: Final Memory: 9M/48M`
124 `INFO: ------------------------------------------------------------------------`
125 `ERROR: Error during SonarScanner execution`
126 `ERROR: You're not authorized to analyze this project or the project doesn't exist on SonarQube and you're not authorized to create it. Please contact an administrator.`
127`ERROR: `
128`ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.`
129 `✖ SonarCloud analysis failed. (exit code = 2)`
No logging in the Docker container of a failed scan
I’ll have a look into the sonarqube-scan, we do have the SONAR_TOKEN set. It functions with a single repository only, as I wrote, but fails the first registered after we added a second one
There may be the problem, using a sqp instead of an sqa token. Darn have to get into the crypts of Sonarqube again. Thank you to point that out to me, Colin
Changed the pipe’s scanner to sonarqube-scan:1.2.0 (is the version mandatory or can latest be used as well?)
Created a sqa_ token and added it to the repository variables
Ran the scans successfully on the repositories.