Hey everyone.
I’ll need your help. We are trying to analyze an angular project with SonarCloud via Azure DevOps Pipeline. We are using 3 tasks to do this (setting the unrequired info as $$$).
-
- task: SonarCloudPrepare@1 displayName: SonarCloudPrepare inputs: SonarCloud: $$$' organization: '$$$' scannerMode: 'CLI' configMode: 'manual' cliProjectKey: '$$$' cliProjectName: '$$$' cliSources: '.' extraProperties: | sonar.verbose=true sonar.cobertura.reportPath=$(System.DefaultWorkingDirectory)/coverage/$$$/cobertura-coverage.xml sonar.typescript.lcov.reportPaths=coverage/$$$/lcov.info
-
- task: SonarCloudAnalyze@1 displayName: SonarCloudAnalyze
-
- task: SonarCloudPublish@1 displayName: SonarCloudPublish inputs: pollingTimeoutSec: '600'
We are generating Cobertura Coverage and it works OK in Azure DevOps, we;re using Karma, Junit and lcov (via karma) however for some reason the files are not being imported to SonarCloud so we get 0% coverage.
Through the output / info we’re getting the following: 17:10:47.494 DEBUG: File ‘D:\a\1\s\coverage$$$\cobertura-coverage.xml’ is excluded by the scm ignore settings.
Could you please assist us and guide us on how to include the Code Coverage & Test numbers?
We really do need help with this one.
Kind regards!