Unfortunately with my many testing of simple VS projects (C#, VB, TS, etc.) which includes .ts files, even though the log message shows it finding the .ts files, the message states that it will be "excluded" from analysis for some reason. Here's the log for "SonarQube Scanner for MSBuild End" task with "/d:sonar.baseDir=$(build.sourcesdirectory) /d:sonar.ts.tslint.projectPath=$(build.sourcesdirectory)" Additional Settings which now does not show "TsLint reported issues against a file that isn't in the analysis set - will be ignored: s/MyApp.ts" but .ts files are still not being analyzed. You can see from it that the .ts file are being seen.
2017-09-08T02:09:20.6130780Z Executing the powershell script: C:\Builds\vNext\tasks\SonarQubeScannerMsBuildEnd\3.0.2\SonarQubePostTest.ps1
2017-09-08T02:09:22.8703037Z SonarQube Scanner for MSBuild 3.0.2
2017-09-08T02:09:24.7704937Z Default properties file was found at C:\Builds\vNext\tasks\SonarQubeScannerMsBuildBegin\3.0.2\SonarQubeScannerMsBuild\SonarQube.Analysis.xml
2017-09-08T02:09:24.7714938Z Loading analysis properties from C:\Builds\vNext\tasks\SonarQubeScannerMsBuildBegin\3.0.2\SonarQubeScannerMsBuild\SonarQube.Analysis.xml
2017-09-08T02:09:24.7714938Z Post-processing started.
2017-09-08T02:09:25.1715338Z 19:09:24.931 Fetching code coverage report information from TFS...
2017-09-08T02:09:25.1725339Z 19:09:25.077 Attempting to locate a test results (.trx) file...
2017-09-08T02:09:25.1725339Z 19:09:25.128 Looking for TRX files in: C:\Builds\vNext\_work\5\TestResults
2017-09-08T02:09:25.1735340Z 19:09:25.135 No test results files found
2017-09-08T02:09:25.5735740Z SONAR_SCANNER_OPTS is not configured. Setting it to the default value of -Xmx1024m
2017-09-08T02:09:25.5745741Z Calling the SonarQube Scanner...
2017-09-08T02:09:25.8746041Z INFO: Scanner configuration file: C:\Builds\vNext\tasks\SonarQubeScannerMsBuildBegin\3.0.2\SonarQubeScannerMsBuild\sonar-scanner-3.0.3.778\bin\..\conf\sonar-scanner.properties
2017-09-08T02:09:25.8756042Z INFO: Project root configuration file: C:\Builds\vNext\_work\5\.sonarqube\out\sonar-project.properties
2017-09-08T02:09:25.8756042Z INFO: SonarQube Scanner 3.0.3.778
2017-09-08T02:09:25.8766043Z INFO: Java 1.8.0_91 Oracle Corporation (32-bit)
2017-09-08T02:09:25.8766043Z INFO: Windows 7 6.1 x86
2017-09-08T02:09:25.8776044Z INFO: SONAR_SCANNER_OPTS=-Xmx1024m
2017-09-08T02:09:25.9776144Z INFO: User cache: C:\Users\tfs_build_user\.sonar\cache
2017-09-08T02:09:26.2776444Z INFO: Load global repositories
2017-09-08T02:09:26.3776544Z INFO: Load global repositories (done) | time=99ms
2017-09-08T02:09:26.3786545Z INFO: User cache: C:\Users\tfs_build_user\.sonar\cache
2017-09-08T02:09:26.5786745Z INFO: Load plugins index
2017-09-08T02:09:26.5796746Z INFO: Load plugins index (done) | time=9ms
2017-09-08T02:09:26.7796946Z INFO: SonarQube server 5.6.6
2017-09-08T02:09:26.7806947Z INFO: Default locale: "en_US", source code encoding: "windows-1252" (analysis is platform dependent)
2017-09-08T02:09:26.9807147Z INFO: Process project properties
2017-09-08T02:09:27.0807247Z INFO: Load project repositories
2017-09-08T02:09:27.0817248Z INFO: Load project repositories (done) | time=105ms
2017-09-08T02:09:27.1817348Z INFO: Load quality profiles
2017-09-08T02:09:27.1827349Z INFO: Load quality profiles (done) | time=32ms
2017-09-08T02:09:27.1827349Z INFO: Load active rules
2017-09-08T02:09:27.6827849Z INFO: Load active rules (done) | time=509ms
2017-09-08T02:09:27.6837850Z INFO: Publish mode
2017-09-08T02:09:27.6837850Z INFO: ------------- Scan ClassLibrary5Tests
2017-09-08T02:09:27.7847951Z INFO: Load server rules
2017-09-08T02:09:27.8858052Z INFO: Load server rules (done) | time=124ms
2017-09-08T02:09:28.0858252Z INFO: Base dir: C:\Builds\vNext\_work\5\s\Unit-CodedUITests\ClassLibrary5Tests
2017-09-08T02:09:28.0868253Z INFO: Working dir: C:\Builds\vNext\_work\5\.sonarqube\out\.sonar\mod0
2017-09-08T02:09:28.0868253Z INFO: Test paths: Class1Tests.cs, Properties/AssemblyInfo.cs
2017-09-08T02:09:28.0878254Z INFO: Source encoding: UTF-8, default locale: en_US
2017-09-08T02:09:28.0878254Z INFO: Index files
2017-09-08T02:09:28.0888255Z INFO: 2 files indexed
2017-09-08T02:09:28.0888255Z INFO: Quality profile for cs: Sonar way
2017-09-08T02:09:28.6888855Z INFO: Sensor Lines Sensor
2017-09-08T02:09:28.6898856Z INFO: Sensor Lines Sensor (done) | time=0ms
2017-09-08T02:09:28.6898856Z INFO: Sensor SCM Sensor
2017-09-08T02:09:28.6908857Z INFO: SCM Publisher is disabled
2017-09-08T02:09:28.6908857Z INFO: Sensor SCM Sensor (done) | time=0ms
2017-09-08T02:09:28.6918858Z INFO: Sensor C#
2017-09-08T02:09:28.6918858Z INFO: Sensor C# (done) | time=5ms
2017-09-08T02:09:28.6918858Z INFO: Sensor C# Unit Tests Coverage Report Import
2017-09-08T02:09:28.6928859Z INFO: Sensor C# Unit Tests Coverage Report Import (done) | time=0ms
2017-09-08T02:09:28.6928859Z INFO: Sensor C# Integration Tests Coverage Report Import
2017-09-08T02:09:28.6938860Z INFO: Sensor C# Integration Tests Coverage Report Import (done) | time=0ms
2017-09-08T02:09:28.6938860Z INFO: Sensor C# Unit Test Results Import
2017-09-08T02:09:28.6938860Z INFO: Sensor C# Unit Test Results Import (done) | time=0ms
2017-09-08T02:09:28.6948861Z INFO: Sensor SonarJavaXmlFileSensor
2017-09-08T02:09:28.6948861Z INFO: Sensor SonarJavaXmlFileSensor (done) | time=0ms
2017-09-08T02:09:28.6948861Z INFO: Sensor Zero Coverage Sensor
2017-09-08T02:09:28.6958862Z INFO: Sensor Zero Coverage Sensor (done) | time=0ms
2017-09-08T02:09:28.6958862Z INFO: Sensor Code Colorizer Sensor
2017-09-08T02:09:28.6968863Z INFO: Sensor Code Colorizer Sensor (done) | time=1ms
2017-09-08T02:09:28.6968863Z INFO: Sensor CPD Block Indexer
2017-09-08T02:09:28.6968863Z INFO: DefaultCpdBlockIndexer is used for cs
2017-09-08T02:09:28.6978864Z INFO: Sensor CPD Block Indexer (done) | time=0ms
2017-09-08T02:09:28.6978864Z INFO: ------------- Scan ClassLibrary5
2017-09-08T02:09:28.6978864Z INFO: Base dir: C:\Builds\vNext\_work\5\s\Unit-CodedUITests\ClassLibrary5
2017-09-08T02:09:28.6988865Z INFO: Working dir: C:\Builds\vNext\_work\5\.sonarqube\out\.sonar\mod1
2017-09-08T02:09:28.6988865Z INFO: Source paths: Class1.cs, Properties/AssemblyInfo.cs, tslint.json, MyApp.ts
2017-09-08T02:09:28.6998866Z INFO: Source encoding: UTF-8, default locale: en_US
2017-09-08T02:09:28.6998866Z INFO: Index files
2017-09-08T02:09:28.6998866Z INFO: Analyzer working directory contains 5 .pb file(s)
2017-09-08T02:09:28.7998966Z INFO: 3 files indexed
2017-09-08T02:09:28.8008967Z INFO: Quality profile for cs: Sonar way
2017-09-08T02:09:28.8008967Z INFO: Quality profile for ts: TsLint
2017-09-08T02:09:28.8008967Z INFO: Sensor Lines Sensor
2017-09-08T02:09:28.8018968Z INFO: Sensor Lines Sensor (done) | time=7ms
2017-09-08T02:09:28.8018968Z INFO: Sensor SCM Sensor
2017-09-08T02:09:28.8018968Z INFO: SCM Publisher is disabled
2017-09-08T02:09:28.8028969Z INFO: Sensor SCM Sensor (done) | time=0ms
2017-09-08T02:09:28.8028969Z INFO: Sensor C#
2017-09-08T02:09:28.8028969Z INFO: Importing analysis results from C:\Builds\vNext\_work\5\.sonarqube\out\ClassLibrary5_4540\output-cs
2017-09-08T02:09:28.8038970Z INFO: Importing Roslyn report
2017-09-08T02:09:28.9039070Z INFO: Sensor C# (done) | time=67ms
2017-09-08T02:09:28.9079074Z INFO: Sensor C# Unit Tests Coverage Report Import
2017-09-08T02:09:28.9079074Z INFO: Sensor C# Unit Tests Coverage Report Import (done) | time=0ms
2017-09-08T02:09:28.9089075Z INFO: Sensor C# Integration Tests Coverage Report Import
2017-09-08T02:09:28.9089075Z INFO: Sensor C# Integration Tests Coverage Report Import (done) | time=0ms
2017-09-08T02:09:28.9099076Z INFO: Sensor C# Unit Test Results Import
2017-09-08T02:09:28.9099076Z INFO: Sensor C# Unit Test Results Import (done) | time=0ms
2017-09-08T02:09:28.9109077Z INFO: Sensor SonarJavaXmlFileSensor
2017-09-08T02:09:28.9109077Z INFO: Sensor SonarJavaXmlFileSensor (done) | time=0ms
2017-09-08T02:09:28.9119078Z INFO: Sensor Linting sensor for TypeScript files
2017-09-08T02:09:29.3129479Z INFO: Sensor Linting sensor for TypeScript files (done) | time=524ms
2017-09-08T02:09:29.3129479Z INFO: Sensor Combined LCOV and LOC sensor
2017-09-08T02:09:29.5129679Z INFO: Sensor Combined LCOV and LOC sensor (done) | time=4ms
2017-09-08T02:09:29.5139680Z INFO: Sensor Zero Coverage Sensor
2017-09-08T02:09:29.5139680Z INFO: Sensor Zero Coverage Sensor (done) | time=6ms
2017-09-08T02:09:29.5139680Z INFO: Sensor Code Colorizer Sensor
2017-09-08T02:09:29.5149681Z INFO: Sensor Code Colorizer Sensor (done) | time=0ms
2017-09-08T02:09:29.5149681Z INFO: Sensor CPD Block Indexer
2017-09-08T02:09:29.5159682Z INFO: DefaultCpdBlockIndexer is used for cs
2017-09-08T02:09:29.5159682Z INFO: DefaultCpdBlockIndexer is used for ts
2017-09-08T02:09:29.5159682Z INFO: Sensor CPD Block Indexer (done) | time=0ms
2017-09-08T02:09:29.5169683Z INFO: ------------- Scan CodedUITestProject1
2017-09-08T02:09:29.5169683Z INFO: Base dir: C:\Builds\vNext\_work\5\s\Unit-CodedUITests\CodedUITestProject1
2017-09-08T02:09:29.5169683Z INFO: Working dir: C:\Builds\vNext\_work\5\.sonarqube\out\.sonar\mod2
2017-09-08T02:09:29.5179684Z INFO: Test paths: CodedUITest1.cs, Properties/AssemblyInfo.cs, UIMap.cs, UIMap.Designer.cs, UIMap.uitest, Web.PROD.config, Web.UAT.config, Web.DEV.config, Web.QA.config
2017-09-08T02:09:29.5179684Z INFO: Source encoding: UTF-8, default locale: en_US
2017-09-08T02:09:29.5179684Z INFO: Index files
2017-09-08T02:09:29.5189685Z INFO: 4 files indexed
2017-09-08T02:09:29.5189685Z INFO: Quality profile for cs: Sonar way
2017-09-08T02:09:29.5189685Z INFO: Sensor Lines Sensor
2017-09-08T02:09:29.5199686Z INFO: Sensor Lines Sensor (done) | time=0ms
2017-09-08T02:09:29.5199686Z INFO: Sensor SCM Sensor
2017-09-08T02:09:29.5209687Z INFO: SCM Publisher is disabled
2017-09-08T02:09:29.5209687Z INFO: Sensor SCM Sensor (done) | time=0ms
2017-09-08T02:09:29.5209687Z INFO: Sensor C#
2017-09-08T02:09:29.5219688Z INFO: Sensor C# (done) | time=0ms
2017-09-08T02:09:29.5219688Z INFO: Sensor C# Unit Tests Coverage Report Import
2017-09-08T02:09:29.5219688Z INFO: Sensor C# Unit Tests Coverage Report Import (done) | time=0ms
2017-09-08T02:09:29.5219688Z INFO: Sensor C# Integration Tests Coverage Report Import
2017-09-08T02:09:29.5229689Z INFO: Sensor C# Integration Tests Coverage Report Import (done) | time=0ms
2017-09-08T02:09:29.5229689Z INFO: Sensor C# Unit Test Results Import
2017-09-08T02:09:29.5229689Z INFO: Sensor C# Unit Test Results Import (done) | time=0ms
2017-09-08T02:09:29.5239690Z INFO: Sensor SonarJavaXmlFileSensor
2017-09-08T02:09:29.5239690Z INFO: Sensor SonarJavaXmlFileSensor (done) | time=0ms
2017-09-08T02:09:29.5239690Z INFO: Sensor Zero Coverage Sensor
2017-09-08T02:09:29.5249691Z INFO: Sensor Zero Coverage Sensor (done) | time=0ms
2017-09-08T02:09:29.5249691Z INFO: Sensor Code Colorizer Sensor
2017-09-08T02:09:29.5249691Z INFO: Sensor Code Colorizer Sensor (done) | time=1ms
2017-09-08T02:09:29.5259692Z INFO: Sensor CPD Block Indexer
2017-09-08T02:09:29.5259692Z INFO: DefaultCpdBlockIndexer is used for cs
2017-09-08T02:09:29.5259692Z INFO: Sensor CPD Block Indexer (done) | time=0ms
2017-09-08T02:09:29.5269693Z INFO: ------------- Scan Wayne_SonarQube
2017-09-08T02:09:29.5269693Z INFO: Base dir: C:\Builds\vNext\_work\5\s
2017-09-08T02:09:29.5269693Z INFO: Working dir: C:\Builds\vNext\_work\5\.sonarqube\out\.sonar
2017-09-08T02:09:29.5279694Z INFO: Source encoding: windows-1252, default locale: en_US
2017-09-08T02:09:29.5279694Z INFO: Sensor Lines Sensor
2017-09-08T02:09:29.5279694Z INFO: Sensor Lines Sensor (done) | time=0ms
2017-09-08T02:09:29.5289695Z INFO: Sensor SCM Sensor
2017-09-08T02:09:29.5289695Z INFO: SCM Publisher is disabled
2017-09-08T02:09:29.5299696Z INFO: Sensor SCM Sensor (done) | time=0ms
2017-09-08T02:09:29.5329699Z INFO: Sensor C# Unit Test Results Import
2017-09-08T02:09:29.5339700Z INFO: Sensor C# Unit Test Results Import (done) | time=0ms
2017-09-08T02:09:29.5339700Z INFO: Sensor SonarJavaXmlFileSensor
2017-09-08T02:09:29.5349701Z INFO: Sensor SonarJavaXmlFileSensor (done) | time=0ms
2017-09-08T02:09:29.5349701Z INFO: Sensor Zero Coverage Sensor
2017-09-08T02:09:29.5359702Z INFO: Sensor Zero Coverage Sensor (done) | time=0ms
2017-09-08T02:09:29.5359702Z INFO: Sensor Code Colorizer Sensor
2017-09-08T02:09:29.5359702Z INFO: Sensor Code Colorizer Sensor (done) | time=0ms
2017-09-08T02:09:29.5369703Z INFO: Sensor CPD Block Indexer
2017-09-08T02:09:29.5369703Z INFO: Sensor CPD Block Indexer (done) | time=0ms
2017-09-08T02:09:29.5369703Z INFO: Calculating CPD for 2 files
2017-09-08T02:09:29.5379704Z INFO: CPD calculation finished
2017-09-08T02:09:29.5379704Z INFO: Analysis report generated in 82ms, dir size=36 KB
2017-09-08T02:09:29.6389805Z INFO: Analysis reports compressed in 27ms, zip size=19 KB
2017-09-08T02:09:29.6399806Z INFO: Analysis report uploaded in 51ms
2017-09-08T02:09:29.6419808Z INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
2017-09-08T02:09:29.6429809Z INFO: ------------------------------------------------------------------------
2017-09-08T02:09:29.6439810Z INFO: EXECUTION SUCCESS
2017-09-08T02:09:29.6439810Z INFO: ------------------------------------------------------------------------
2017-09-08T02:09:29.6449811Z INFO: Total time: 3.910s
2017-09-08T02:09:29.7449911Z INFO: Final Memory: 44M/115M
2017-09-08T02:09:29.7459912Z INFO: ------------------------------------------------------------------------
2017-09-08T02:09:29.7459912Z The SonarQube Scanner has finished
2017-09-08T02:09:29.7469913Z 19:09:29.724 Creating a summary markdown file...
2017-09-08T02:09:29.7479914Z 19:09:29.733 Post-processing succeeded.
2017-09-08T02:09:30.0180184Z ##[debug]Calling InvokeGetRestMethod "/api/server/version"
2017-09-08T02:09:30.0900256Z ##[debug]Variable read: MSBuild.SonarQube.ServerUsername = ********
2017-09-08T02:09:30.0910257Z ##[debug]Variable read: MSBuild.SonarQube.ServerPassword =
2017-09-08T02:09:30.4130579Z ##[debug]received 5-byte response of content type text/html;charset=utf-8
2017-09-08T02:09:30.5510717Z Waiting on the SonarQube server to finish processing in order to determine the quality gate status.
2017-09-08T02:09:31.7851951Z The SonarQube analysis has finished processing.
2017-09-08T02:09:31.7951961Z Creating a summary report
2017-09-08T02:09:32.0812247Z Uploading the report
2017-09-08T02:09:32.0912257Z The build was not set to fail if the associated quality gate fails.