Angular code not uploaded in SonarQube project

Must-share information (formatted with Markdown):
which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
SonarQube version 6.7
Stand alone scanner in Azure DevOps SonarQube task

what are you trying to achieve
We want our Angular application to be analyzed with SonarQube. The analyze taks in Azure Devops look oke, but no code or results were visible in SonarQube it self

what have you tried so far to achieve this
Our pipeline looks like this

  • Configure SonarQube
    SonarQube: ‘Sonarqube PRD’ --connection
    scannerMode: ‘CLI’
    configMode: ‘manual’
    cliProjectKey: ‘xxxAngular’
    cliProjectName: ‘xxx Angular’
    cliSources: '(System.DefaultWorkingDirectory)\xxx\Sources\xxx\src\xxx.Angular' extraProperties: | sonar.sources = (Build.SourcesDirectory)/xxx/Sources/xxx/src/xxx.Angular/
    sonar.sourceEncoding = UTF-8
    sonar.exclusions = /node_modules/, /*.spec.ts
    sonar.tests=(Build.SourcesDirectory)\xxx\Sources\xxx\src\xxx.Angular\cypress\integration sonar.test.inclusions=**/*.spec.ts sonar.ts.file.suffixes= ts sonar.ts.tslintconfigpath=tslint.json sonar.typescript.lcov.reportingPaths=(Build.SourcesDirectory)/xxx/Sources/xxx/src/xxx.Angular/coverage/lcov-report
    sonar.typescript.exclusions=
    /node_modules/,/main.ts,/environments/environment.*.ts,/*routing.module.ts

  • NPM install

  • NPM run

  • NPM test cypress with code coverage

  • Publish test results

  • Publish code coverage results

  • SonarQube Analysis

  • SonarQube Publish Quality gate

The analysis logging give the following result

##[section]Starting: SonarQube - Analyze
==============================================================================
Task         : Run Code Analysis
Description  : Run scanner and upload the results to the SonarQube server.
Version      : 4.11.0
Author       : sonarsource
Help         : Version: 4.11.0. This task is not needed for Maven and Gradle projects since the scanner should be run as part of the build.

[More Information](http://redirect.sonarsource.com/doc/install-configure-scanner-tfs-ts.html)
==============================================================================
[command]C:\windows\system32\cmd.exe /D /S /C "C:\Agents\Agent_2\_work\_tasks\SonarQubeAnalyze_6d01813a-9589-4b15-8491-8164aeb38055\4.11.0\sonar-scanner\bin\sonar-scanner.bat "--from=ScannerAzureDevOps/4.11.0""
INFO: Scanner configuration file: C:\Agents\Agent_2\_work\_tasks\SonarQubeAnalyze_6d01813a-9589-4b15-8491-8164aeb38055\4.11.0\sonar-scanner\bin\..\conf\sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: SonarScanner 4.4.0.2170
INFO: Java 1.8.0_261 Oracle Corporation (32-bit)
INFO: Windows Server 2019 10.0 x86
INFO: User cache: C:\windows\ServiceProfiles\NetworkService\.sonar\cache
INFO: Scanner configuration file: C:\Agents\Agent_2\_work\_tasks\SonarQubeAnalyze_6d01813a-9589-4b15-8491-8164aeb38055\4.11.0\sonar-scanner\bin\..\conf\sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: Analyzing on SonarQube server 6.7.0
INFO: Default locale: "en_US", source code encoding: "windows-1252" (analysis is platform dependent)
INFO: Publish mode
INFO: Load global settings
INFO: Load global settings (done) | time=110ms
INFO: Server id: AW_1WqOZ5CaxyW337eg0
INFO: User cache: C:\windows\ServiceProfiles\NetworkService\.sonar\cache
INFO: Load plugins index
INFO: Load plugins index (done) | time=47ms
INFO: Process project properties
INFO: Load project repositories
INFO: Load project repositories (done) | time=94ms
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=110ms
INFO: Load active rules
INFO: Load active rules (done) | time=125ms
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=16ms
INFO: Project key: xxxAngular
INFO: -------------  Scan xxx Angular
INFO: Load server rules
INFO: Load server rules (done) | time=15ms
INFO: Base dir: C:\Agents\Agent_2\_work\12\s
INFO: Working dir: C:\Agents\Agent_2\_work\12\s\.scannerwork
INFO: Source paths: xxx/Sources/xxx/src/xxx.Angular
INFO: Test paths: xxx/Sources/xxx/src/xxx.Angular/cypress/integration
INFO: Source encoding: windows-1252, default locale: en_US
INFO: Index files
INFO: Excluded sources: 
INFO:   **/node_modules/**
INFO:   **/*.spec.ts
INFO:   **/*.spec.ts
INFO: Included tests: 
INFO:   **/*.spec.ts
INFO: 428 files indexed...  (last one was xxx/Sources/xxx/src/xxx.Angular/ng-swagger-gen.json)
INFO: 701 files indexed
INFO: 91447 files ignored because of inclusion/exclusion patterns
INFO: Sensor Zero Coverage Sensor
INFO: Sensor Zero Coverage Sensor (done) | time=79ms
INFO: Sensor CPD Block Indexer
INFO: Sensor CPD Block Indexer (done) | time=0ms
INFO: SCM Publisher is disabled
INFO: Calculating CPD for 0 files
INFO: CPD calculation finished
INFO: Analysis report generated in 78ms, dir size=7 KB
INFO: Analysis reports compressed in 31ms, zip size=2 KB
INFO: Analysis report uploaded in 47ms
INFO: ANALYSIS SUCCESSFUL, you can browse http://sonarqube:9000/dashboard/index/xxxAngular
INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
INFO: More about the report processing at http://sonarqube:9000/api/ce/task?id=AXR27HQx4UrcMwFa8zJI
INFO: Task total time: 12.672 s
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 14.126s
INFO: Final Memory: 6M/118M
INFO: ------------------------------------------------------------------------
##[section]Finishing: SonarQube - Analyze

In SonarQube self we see the project and the last analyse date is updated, but no code, test results, code smells or bugs were mentioned.

What are we doing wrong?

Is this problem resolved? Since I am also facing the similar issue, wanted to check on the solution