I'm trying to add SonarQube to a local instance of GitLab-CI, but can't get past this error produced by GitLab-CI Runner:
Note: GitLab-Runner, Sonar-Scanner and SonarQube are all installed on the same Windows server.
My first thought was, it can't find the runner, installation/permission problem. So....
I have verified:
- SonarQube Service run as Admin and has full access to Sonar-Scanner directory
- GitLab Runner Service as Admin and has full access to Sonar-Scanner directory
- Sonar-Scanner Installation double checked (Standalone executable: sonarscanner-for-msbuild) (installed per https://docs.sonarqube.org/latest/analysis/scan/sonarscanner-for-msbuild/ )
- Sonar-Scanner added to Environment Variables' 'Path':
And still the same error so I tried running Sonar-Scanner on its own:
and that seems to run ok. But GitLab still produces the same issue. Maybe I'm using the wrong Sonar-Scanner?
I'm fairly new to GitLab-CI's Runner so any guidance/suggestions you can offer is greatly appreciated. Not sure where else to look (I've read everything/anything remotely related).
question from:
https://stackoverflow.com/questions/65945460/gitlab-ci-sonar-scanner-the-term-sonar-scanner-is-not-recognized-as-the-nam 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…