Template for a good new topic, formatted with Markdown:
- ALM GITLAB
- CI GITLAB CI
- Scanner command used when applicable
sonar.projectKey=projectkey
sonar.organization=organizationname #from my sonar cloud Organization Account
sonar.host=https://sonarcloud.io
This is the name and version displayed in the SonarCloud UI.
sonar.projectName=projectname
sonar.projectVersion=1.9.1.0
Path is relative to the sonar-project.properties file. Replace “” by “/” on Windows.
sonar.sources=.
Encoding of the source code. Default is default system encoding
sonar.sourceEncoding=UTF-8
sonarcloud-check:
image:
name: sonarsource/sonar-scanner-cli:latest
entrypoint: [""]
cache:
key: “${CI_JOB_NAME}”
paths:
- .sonar/cache
dependencies:
- build
script:
- choco install sonarqube-scanner.portable
- SonarScanner.MSBuild.exe begin /k:“somefile” /d:sonar.host.url=“https://sonarcloud.io” /d:sonar.login=“kjhnhgffddsdt”
- nuget restore -ConfigFile .\nuget.config
- MsBuild.exe ./Project/t:Rebuild
- SonarScanner.MSBuild.exe end /d:sonar.login=“kjhnhgffddsdt”
only:
- merge_requests
- master
- develop
- GitLabQualityTool
- Languages of the repository - C#
If I comment organization name everythinh is fine but I don’t get report on the cloud but here INFO: ANALYSIS SUCCESSFUL, you can browse [http://localhost:9000/dashboard?id]