We’re currently running code analysis via jenkins as such:
dotnet sonarscanner begin /k:“microservices” /d:“sonar.login=${SONAR_TOKEN}” /o:“ptp” /v:“$GIT_COMMIT” /d:“sonar.host.url=https://sonarcloud.io” /d:“sonar.cs.dotcover.reportsPaths=./dotCover.Output.html”
dotnet restore Microservices.sln
dotnet build Microservices.sln
dotnet-dotcover test --dcReportType=HTML --dcLogLevel=Verbose --dcLogFile=/dotcoverlogs/dotcover_log.txt ./Microservices.sln
dotnet sonarscanner end /d:“sonar.token=${SONAR_TOKEN}”
We’d like to get an email every time quality gates fail - either from jenkins or from sonar cloud. I thought I could do that by enabling notifications in the sonar cloud portal
But I’ve done that and re-run our jobs with a quality gate that fails and I get no email. So how can we know (without signing into the portal) when we’ve got a failure?
Thanks
Brad