如何解决声纳云 Gitlab 分析
我使用 Sonar Cloud 通过 Gitlab CI 分析我的代码。通常在 SONAR_HOST_URL 中我放了 https://sonarcloud.io ,但是在管道完成声纳后,将我的分析放入 INFO: ANALYSIS SUCCESSFUL,您可以浏览 http://localhost:9000/dashboard。为什么我不在任何地方写这个网址。我希望在云版本中进行分析。
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
这是错误信息:INFO: ANALYSIS SUCCESSFUL,您可以浏览 http://localhost:9000/dashboard?id。 在我的 gitlab 变量中 SONAR_HOST_URL=https://sonarcloud.io
这是我尝试的另一个版本:
analyze:
stage: analyze
image:
name: sonarsource/sonar-scanner-cli:latest
entrypoint: [""]
cache:
key: "${CI_JOB_NAME}"
paths:
- .sonar/cache
script:
- sonar-scanner
only:
- master
- IDEA-022
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。