sonarcloud

How to fail a maven build, when quality gate fails?

こ雲淡風輕ζ 提交于 2021-01-27 13:21:38
问题 Earlier I use sonar-maven-plugin version 3.2 then when a Sonar quality gate fails the build also used to fail. Now I am using sonar-maven-plugin version 3.7.0.1746 , it does not happen so. Even if quality gate fails maven build succeeded. Now when I use version 3.2 in pom.xml it gives the error [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.2:sonar (default-cli) on project maven-webapp: Unable to execute SonarQube: Fail to download libraries from server ->

Code and details of code coverage not showing in SonarCloud for .Net solution

瘦欲@ 提交于 2020-08-10 20:02:11
问题 I have issues seeing details of the code analysis in SonarCloud. What I have working is a .Net Core application with Coverlet. I do see that the results are uploaded and the coverage shows. However, I don't get to see a dashboard, the tab 'code' doesn't show code and Measures doesn't give detailed information either. My Github project is linked and as I can see, the results are uploaded. I wondered why I can't see the code and detailed coverage. I'm not familiar with .NET code and SonarQube

SonarCloud with VSTS has error Duplicate ProjectGuid: “00000000-0000-0000-0000-000000000000”

时间秒杀一切 提交于 2019-12-02 07:37:15
问题 We added SonarCloud to the build pipeline of a large solution. Only one project in our solution is analyzed but we see this warning WARNING: The following projects do not have a valid ProjectGuid and were not built using a valid solution (.sln) thus will be skipped from analysis... D:\a\1\s\MyApp\MyApp.Entities\MyApp.Entities.csproj, D:\a\1\s\MyApp\MyApp.Core\MyApp.Core.csproj, D:\a\1\s\MyApp\MyApp.Mobile.Backend\MyApp.Mobile.Backend.csproj, D:\a\1\s\MyApp\MyApp.Entities\MyApp.Entities.csproj

SonarCloud with VSTS has error Duplicate ProjectGuid: “00000000-0000-0000-0000-000000000000”

守給你的承諾、 提交于 2019-12-02 04:41:18
We added SonarCloud to the build pipeline of a large solution. Only one project in our solution is analyzed but we see this warning WARNING: The following projects do not have a valid ProjectGuid and were not built using a valid solution (.sln) thus will be skipped from analysis... D:\a\1\s\MyApp\MyApp.Entities\MyApp.Entities.csproj, D:\a\1\s\MyApp\MyApp.Core\MyApp.Core.csproj, D:\a\1\s\MyApp\MyApp.Mobile.Backend\MyApp.Mobile.Backend.csproj, D:\a\1\s\MyApp\MyApp.Entities\MyApp.Entities.csproj, D:\a\1\s\MyApp\MyApp.Core\MyApp.Core.csproj, D:\a\1\s\MyApp\MyApp.Web\MyApp.Web.csproj WARNING:

Error using Travis CI with Sonarcloud: Not authorized. Please check the properties sonar.login and sonar.password

送分小仙女□ 提交于 2019-11-30 21:35:12
I'm following Get started instructions on sonarcloud.io to execute the SonarQube Scanner for Maven from my computer: mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar \ -Dsonar.host.url=https://sonarcloud.io \ -Dsonar.organization=ron190-github \ -Dsonar.login=9...e Manual execution is working: [INFO] ANALYSIS SUCCESSFUL, you can browse https://sonarcloud.io/dashboard/index /jsql-injection:jsql-injection But when I'm ready to automate with Travis CI it's failing with Not authorized. Please check the properties sonar.login and sonar.password. : [ERROR] Failed to execute

Error using Travis CI with Sonarcloud: Not authorized. Please check the properties sonar.login and sonar.password

流过昼夜 提交于 2019-11-30 05:02:45
问题 I'm following Get started instructions on sonarcloud.io to execute the SonarQube Scanner for Maven from my computer: mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar \ -Dsonar.host.url=https://sonarcloud.io \ -Dsonar.organization=ron190-github \ -Dsonar.login=9...e Manual execution is working: [INFO] ANALYSIS SUCCESSFUL, you can browse https://sonarcloud.io/dashboard/index /jsql-injection:jsql-injection But when I'm ready to automate with Travis CI it's failing with