Scanner finish succefully, but Analysis doesn't show in dashboard

sonarqube
csharp

(Yan Tapajós) #1

Hi folks,

I started to work with SonarQube today and I got some troubles to an c# application.

SonarQube Server:

I’m running Sonar Server locally and configuration was fine.
Version: SonarQube™ technology is powered by SonarSource SA

  • Community Edition
  • Version 7.5 (build 20543)

Project creation:

I created project in two ways, using SonarScanner and Interface from dashboard (like image below)

like image request i used following command:
SonarScanner.MSBuild.exe begin /k:"application-key" /d:sonar.host.url="http://localhost:9000" /d:sonar.verbose=true /d:sonar.login="ef71fc05ba1e7aa66bb060381bb8389ac14177d1

SonarScanner.MSBuild.exe begin /k:"application-key" /d:sonar.host.url="http://localhost:9000" /d:sonar.verbose=true /d:sonar.login="ef71fc05ba1e7aa66bb060381bb8389ac14177d1"
SonarScanner for MSBuild 4.5
Using the .NET Framework version of the Scanner for MSBuild
Default properties file was found at C:\Users\yan.diniz\Downloads\sonar-scanner-msbuild-4.5.0.1761-net46\SonarQube.Analysis.xml
Loading analysis properties from C:\Users\yan.diniz\Downloads\sonar-scanner-msbuild-4.5.0.1761-net46\SonarQube.Analysis.xml
sonar.verbose=true was specified - setting the log verbosity to 'Debug'
Pre-processing started.
Preparing working directories...
Using environment variables to determine the download directory...
14:47:48.339  14:47:48.334  Loading analysis properties from C:\Users\yan.diniz\Downloads\sonar-scanner-msbuild-4.5.0.1761-net46\SonarQube.Analysis.xml
14:47:48.34  14:47:48.339  sonar.verbose=true was specified - setting the log verbosity to 'Debug'
14:47:48.343  Updating build integration targets...
14:47:48.347  The file SonarQube.Integration.ImportBefore.targets is up to date at C:\Users\yan.diniz\AppData\Local\Microsoft\MSBuild\4.0\Microsoft.Common.targets\ImportBefore
14:47:48.348  The file SonarQube.Integration.ImportBefore.targets is up to date at C:\Users\yan.diniz\AppData\Local\Microsoft\MSBuild\10.0\Microsoft.Common.targets\ImportBefore
14:47:48.348  The file SonarQube.Integration.ImportBefore.targets is up to date at C:\Users\yan.diniz\AppData\Local\Microsoft\MSBuild\11.0\Microsoft.Common.targets\ImportBefore
14:47:48.348  The file SonarQube.Integration.ImportBefore.targets is up to date at C:\Users\yan.diniz\AppData\Local\Microsoft\MSBuild\12.0\Microsoft.Common.targets\ImportBefore
14:47:48.351  The file SonarQube.Integration.ImportBefore.targets is up to date at C:\Users\yan.diniz\AppData\Local\Microsoft\MSBuild\14.0\Microsoft.Common.targets\ImportBefore
14:47:48.351  The file SonarQube.Integration.ImportBefore.targets is up to date at C:\Users\yan.diniz\AppData\Local\Microsoft\MSBuild\15.0\Microsoft.Common.targets\ImportBefore
14:47:48.353  Installed SonarQube.Integration.targets to C:\Users\yan.diniz\Developer\Performa\BlackMirror\black-mirror\csharp-app\.sonarqube\bin\targets
14:47:48.355  Creating config and output folders...
14:47:48.356  Creating directory: C:\Users\yan.diniz\Developer\Performa\BlackMirror\black-mirror\csharp-app\.sonarqube\conf
14:47:48.357  Creating directory: C:\Users\yan.diniz\Developer\Performa\BlackMirror\black-mirror\csharp-app\.sonarqube\out
14:47:48.365  Fetching analysis configuration settings...
14:47:48.368  Downloading from http://localhost:9000/api/server/version...
14:47:48.385  Fetching properties for project 'application-key' from http://localhost:9000/api/settings/values?component=application-key...
14:47:48.387  Downloading from http://localhost:9000/api/settings/values?component=application-key...
14:47:48.443  Downloading from http://localhost:9000/api/languages/list...
14:47:48.448  Fetching quality profile for project 'application-key' from http://localhost:9000/api/qualityprofiles/search?projectKey=application-key...
14:47:48.45  Downloading from http://localhost:9000/api/qualityprofiles/search?projectKey=application-key...
14:47:48.469  Fetching active rules for quality profile 'AWfvtxRPVg5ftGAIQE98' from http://localhost:9000/api/rules/search?f=repo,name,severity,lang,internalKey,templateKey,params,actives&ps=500&activation=true&qprofile=AWfvtxRPVg5ftGAIQE98&p=1...
14:47:48.471  Downloading from http://localhost:9000/api/rules/search?f=repo,name,severity,lang,internalKey,templateKey,params,actives&ps=500&activation=true&qprofile=AWfvtxRPVg5ftGAIQE98&p=1...
14:47:48.601  Fetching rules not active in quality profile 'AWfvtxRPVg5ftGAIQE98' for language 'cs' from http://localhost:9000/api/rules/search?f=repo,name,severity,lang,internalKey,templateKey,params&ps=500&activation=false&qprofile=AWfvtxRPVg5ftGAIQE98&p=1&languages=cs...
14:47:48.603  Downloading from http://localhost:9000/api/rules/search?f=repo,name,severity,lang,internalKey,templateKey,params&ps=500&activation=false&qprofile=AWfvtxRPVg5ftGAIQE98&p=1&languages=cs...
14:47:48.671  Local analyzer cache: C:\Users\yan.diniz\AppData\Local\Temp\.sonarqube\resources
14:47:48.685  Writing Roslyn generated ruleset to C:\Users\yan.diniz\Developer\Performa\BlackMirror\black-mirror\csharp-app\.sonarqube\conf\SonarQubeRoslyn-cs.ruleset...
14:47:48.701  Writing Roslyn analyzer additional file to C:\Users\yan.diniz\Developer\Performa\BlackMirror\black-mirror\csharp-app\.sonarqube\conf\cs\SonarLint.xml...
14:47:48.704  Provisioning analyzer assemblies for cs...
14:47:48.706  Installing required Roslyn analyzers...
14:47:48.707  Processing plugin: csharp version 7.9.1.7622
14:47:48.769  Cache hit: using plugin files from C:\Users\yan.diniz\AppData\Local\Temp\.sonarqube\resources\0
14:47:48.771  Processing plugin: vbnet version 7.9.1.7622
14:47:48.771  Cache hit: using plugin files from C:\Users\yan.diniz\AppData\Local\Temp\.sonarqube\resources\1
14:47:48.772  Fetching quality profile for project 'application-key' from http://localhost:9000/api/qualityprofiles/search?projectKey=application-key...
14:47:48.772  Downloading from http://localhost:9000/api/qualityprofiles/search?projectKey=application-key...
14:47:48.785  Fetching active rules for quality profile 'AWfvtxoLVg5ftGAIQFUX' from http://localhost:9000/api/rules/search?f=repo,name,severity,lang,internalKey,templateKey,params,actives&ps=500&activation=true&qprofile=AWfvtxoLVg5ftGAIQFUX&p=1...
14:47:48.786  Downloading from http://localhost:9000/api/rules/search?f=repo,name,severity,lang,internalKey,templateKey,params,actives&ps=500&activation=true&qprofile=AWfvtxoLVg5ftGAIQFUX&p=1...
14:47:48.848  Fetching rules not active in quality profile 'AWfvtxoLVg5ftGAIQFUX' for language 'vbnet' from http://localhost:9000/api/rules/search?f=repo,name,severity,lang,internalKey,templateKey,params&ps=500&activation=false&qprofile=AWfvtxoLVg5ftGAIQFUX&p=1&languages=vbnet...
14:47:48.85  Downloading from http://localhost:9000/api/rules/search?f=repo,name,severity,lang,internalKey,templateKey,params&ps=500&activation=false&qprofile=AWfvtxoLVg5ftGAIQFUX&p=1&languages=vbnet...
14:47:48.89  Local analyzer cache: C:\Users\yan.diniz\AppData\Local\Temp\.sonarqube\resources
14:47:48.892  Writing Roslyn generated ruleset to C:\Users\yan.diniz\Developer\Performa\BlackMirror\black-mirror\csharp-app\.sonarqube\conf\SonarQubeRoslyn-vbnet.ruleset...
14:47:48.895  Writing Roslyn analyzer additional file to C:\Users\yan.diniz\Developer\Performa\BlackMirror\black-mirror\csharp-app\.sonarqube\conf\vbnet\SonarLint.xml...
14:47:48.895  Provisioning analyzer assemblies for vbnet...
14:47:48.896  Installing required Roslyn analyzers...
14:47:48.896  Processing plugin: csharp version 7.9.1.7622
14:47:48.896  Cache hit: using plugin files from C:\Users\yan.diniz\AppData\Local\Temp\.sonarqube\resources\0
14:47:48.897  Processing plugin: vbnet version 7.9.1.7622
14:47:48.897  Cache hit: using plugin files from C:\Users\yan.diniz\AppData\Local\Temp\.sonarqube\resources\1
14:47:48.918  Pre-processing succeeded.

After that, I build the project using MSBuild 15 from visual studio 2017.

MSBuild .
Microsoft(R) Build Engine versão 15.9.20+g88f5fadfbe para .NET Framework
Copyright (C) Microsoft Corporation. Todos os direitos reservados.

Compilando os projetos desta solução um de cada vez. Para habilitar o build paralelo, adicione a opção "/m".
Compilação de 27/12/2018 14:50:18 iniciada.
-------------------------------------------------

    103 Aviso(s)
    0 Erro(s)

Tempo Decorrido 00:00:05.98

The final answer was compilation succefully with 103 warning and 0 errors.

And the last command was end:

SonarScanner.MSBuild.exe end /d:sonar.login=“2d511475ac2349b10a8f443c106d3d6cfa478ad4”

SonarScanner for MSBuild 4.5
Using the .NET Framework version of the Scanner for MSBuild
Default properties file was found at C:\Users\yan.diniz\Downloads\sonar-scanner-msbuild-4.5.0.1761-net46\SonarQube.Analysis.xml
Loading analysis properties from C:\Users\yan.diniz\Downloads\sonar-scanner-msbuild-4.5.0.1761-net46\SonarQube.Analysis.xml
Post-processing started.
14:52:14.019  Loading the SonarQube analysis config from C:\Users\yan.diniz\Developer\Performa\BlackMirror\black-mirror\csharp-app\.sonarqube\conf\SonarQubeAnalysisConfig.xml
14:52:14.02  Not running under TeamBuild
14:52:14.02  Analysis base directory: C:\Users\yan.diniz\Developer\Performa\BlackMirror\black-mirror\csharp-app\.sonarqube
Build directory:
Bin directory: C:\Users\yan.diniz\Developer\Performa\BlackMirror\black-mirror\csharp-app\.sonarqube\bin
Config directory: C:\Users\yan.diniz\Developer\Performa\BlackMirror\black-mirror\csharp-app\.sonarqube\conf
Output directory: C:\Users\yan.diniz\Developer\Performa\BlackMirror\black-mirror\csharp-app\.sonarqube\out
Config file: C:\Users\yan.diniz\Developer\Performa\BlackMirror\black-mirror\csharp-app\.sonarqube\conf\SonarQubeAnalysisConfig.xml
Generating SonarQube project properties file to C:\Users\yan.diniz\Developer\Performa\BlackMirror\black-mirror\csharp-app\.sonarqube\out\sonar-project.properties
Setting analysis property: sonar.visualstudio.enable=false
The supplied Code Analysis ErrorLog file is a valid json file and does not need to be fixed: C:\Users\yan.diniz\Developer\Performa\BlackMirror\black-mirror\csharp-app\ClassLibraryBackupCreator\bin\Debug\ClassLibraryBackupCreator.dll.RoslynCA.json
The supplied Code Analysis ErrorLog file is a valid json file and does not need to be fixed: C:\Users\yan.diniz\Developer\Performa\BlackMirror\black-mirror\csharp-app\ClassLibraryBackupCreator\bin\Debug\ClassLibraryBackupCreator.dll.RoslynCA.json
The supplied Code Analysis ErrorLog file is a valid json file and does not need to be fixed: C:\Users\yan.diniz\Developer\Performa\BlackMirror\black-mirror\csharp-app\WindowsFormBackupCreator\bin\Debug\WindowsFormBackupCreator.exe.RoslynCA.json
The supplied Code Analysis ErrorLog file is a valid json file and does not need to be fixed: C:\Users\yan.diniz\Developer\Performa\BlackMirror\black-mirror\csharp-app\WindowsFormBackupCreator\bin\Debug\WindowsFormBackupCreator.exe.RoslynCA.json
Using longest common projects root path as project base directory: 'C:\Users\yan.diniz\Developer\Performa\BlackMirror\black-mirror\csharp-app'.
Dumping content of sonar-project.properties
------------------------------------------------------------------------
sonar.projectKey=application-key
sonar.working.directory=C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\.sonarqube\\out\\.sonar
sonar.projectBaseDir=C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app

9C9202FD-ACCC-4F48-A4D9-089083A3AE50.sonar.projectKey=application-key:9C9202FD-ACCC-4F48-A4D9-089083A3AE50
9C9202FD-ACCC-4F48-A4D9-089083A3AE50.sonar.projectName=ClassLibraryBlackMirror
9C9202FD-ACCC-4F48-A4D9-089083A3AE50.sonar.projectBaseDir=C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\ClassLibraryBackupCreator
9C9202FD-ACCC-4F48-A4D9-089083A3AE50.sonar.sourceEncoding=utf-8
9C9202FD-ACCC-4F48-A4D9-089083A3AE50.sonar.sources=\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\ClassLibraryBackupCreator\\DAO\\BMI_LOT.cs",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\ClassLibraryBackupCreator\\DAO\\BMI_PRODUCTION_LINES.cs",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\ClassLibraryBackupCreator\\DAO\\BMI_PRODUCTION_ORDER.cs",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\ClassLibraryBackupCreator\\DAO\\BMI_SERIAL_NUMBER.cs",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\ClassLibraryBackupCreator\\DAO\\BMI_WEIGHING_HISTORY.cs",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\ClassLibraryBackupCreator\\Model\\Balan\u00E7a.cs",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\ClassLibraryBackupCreator\\Utils\\Auxiliar.cs",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\ClassLibraryBackupCreator\\Control\\DBAuxiliar.cs",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\ClassLibraryBackupCreator\\Model\\Inicializador.cs",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\ClassLibraryBackupCreator\\Utils\\LogProject.cs",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\ClassLibraryBackupCreator\\Model\\LINE.cs",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\ClassLibraryBackupCreator\\Model\\LOT.cs",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\ClassLibraryBackupCreator\\Model\\PRODUCTION_LINE.cs",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\ClassLibraryBackupCreator\\Model\\PRODUCTION_ORDER.cs",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\ClassLibraryBackupCreator\\Model\\WEIGHING_CBOX.cs",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\ClassLibraryBackupCreator\\Model\\WEIGHING_UBOX.cs",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\ClassLibraryBackupCreator\\Properties\\AssemblyInfo.cs",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\ClassLibraryBackupCreator\\ini.xml",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\ClassLibraryBackupCreator\\packages.config"

9C9202FD-ACCC-4F48-A4D9-089083A3AE50.sonar.cs.roslyn.reportFilePath=C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\ClassLibraryBackupCreator\\bin\\Debug\\ClassLibraryBackupCreator.dll.RoslynCA.json
9C9202FD-ACCC-4F48-A4D9-089083A3AE50.sonar.cs.analyzer.projectOutPath=C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\.sonarqube\\out\\0
9C9202FD-ACCC-4F48-A4D9-089083A3AE50.sonar.cs.analyzer.projectOutPaths=\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\.sonarqube\\out\\0"
9C9202FD-ACCC-4F48-A4D9-089083A3AE50.sonar.cs.roslyn.reportFilePaths=\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\ClassLibraryBackupCreator\\bin\\Debug\\ClassLibraryBackupCreator.dll.RoslynCA.json"

9C9202FD-ACCC-4F48-A4D9-089083A3AE50.sonar.working.directory=C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\.sonarqube\\out\\.sonar\\mod0
A7F97879-E232-4AA1-BCAA-03D8BA2CFA16.sonar.projectKey=application-key:A7F97879-E232-4AA1-BCAA-03D8BA2CFA16
A7F97879-E232-4AA1-BCAA-03D8BA2CFA16.sonar.projectName=WindowsFormBackupCreator
A7F97879-E232-4AA1-BCAA-03D8BA2CFA16.sonar.projectBaseDir=C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator
A7F97879-E232-4AA1-BCAA-03D8BA2CFA16.sonar.sourceEncoding=utf-8
A7F97879-E232-4AA1-BCAA-03D8BA2CFA16.sonar.sources=\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\Classes\\FormEstado.cs",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\DAO\\CompanyDAO.cs",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\DAO\\LoginDAO.cs",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\Model\\Companias.cs",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\Model\\Usuario.cs",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\Telas\\Frm_Balanca.cs",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\Telas\\Frm_Balanca.Designer.cs",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\Telas\\Frm_ImprimirQRCode.cs",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\Telas\\Frm_ImprimirQRCode.Designer.cs",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\Telas\\Frm_Login.cs",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\Telas\\Frm_Login.Designer.cs",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\Program.cs",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\Properties\\AssemblyInfo.cs",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\Util\\Desenho.cs",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\Util\\Logger.cs",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\ball.ico",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\icone-performa.ico",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\performa_icone.ico",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\TextTemplate.ico",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\timer.ico",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\Telas\\Frm_Balanca.resx",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\Telas\\Frm_ImprimirQRCode.resx",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\Telas\\Frm_Login.resx",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\Properties\\Resources.resx",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\packages.config",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\Properties\\Settings.settings",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\App.config",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\Resources\\icone-supply2.png",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\Resources\\rfid.png",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\Resources\\rfid@2x.png",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\Resources\\baseline-fingerprint-24px.png",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\Resources\\baseline-fingerprint-24px@2x.png",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\Resources\\Rectangle 396.png",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\Resources\\performa-marca.png",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\Resources\\performa-marca@2x.png",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\Resources\\Rectangle 3961.png",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\Resources\\Rectangle 397.png",\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\Resources\\Rectangle 3971.png"

A7F97879-E232-4AA1-BCAA-03D8BA2CFA16.sonar.cs.roslyn.reportFilePath=C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\bin\\Debug\\WindowsFormBackupCreator.exe.RoslynCA.json
A7F97879-E232-4AA1-BCAA-03D8BA2CFA16.sonar.cs.analyzer.projectOutPath=C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\.sonarqube\\out\\1
A7F97879-E232-4AA1-BCAA-03D8BA2CFA16.sonar.cs.analyzer.projectOutPaths=\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\.sonarqube\\out\\1"
A7F97879-E232-4AA1-BCAA-03D8BA2CFA16.sonar.cs.roslyn.reportFilePaths=\
"C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\WindowsFormBackupCreator\\bin\\Debug\\WindowsFormBackupCreator.exe.RoslynCA.json"

A7F97879-E232-4AA1-BCAA-03D8BA2CFA16.sonar.working.directory=C:\\Users\\yan.diniz\\Developer\\Performa\\BlackMirror\\black-mirror\\csharp-app\\.sonarqube\\out\\.sonar\\mod1
sonar.host.url=http://localhost:9000
sonar.visualstudio.enable=false

sonar.modules=9C9202FD-ACCC-4F48-A4D9-089083A3AE50,A7F97879-E232-4AA1-BCAA-03D8BA2CFA16


------------------------------------------------------------------------
Writing processing summary to C:\Users\yan.diniz\Developer\Performa\BlackMirror\black-mirror\csharp-app\.sonarqube\out\ProjectInfo.log
SONAR_SCANNER_OPTS is not configured. Setting it to the default value of -Xmx1024m
Calling the SonarQube Scanner...
Setting environment variable 'SONAR_SCANNER_OPTS'. Value: -Xmx1024m
Executing file C:\Users\yan.diniz\Downloads\sonar-scanner-msbuild-4.5.0.1761-net46\sonar-scanner-3.2.0.1227\bin\sonar-scanner.bat
  Args: -Dsonar.scanAllFiles=true -Dproject.settings=C:\Users\yan.diniz\Developer\Performa\BlackMirror\black-mirror\csharp-app\.sonarqube\out\sonar-project.properties --embedded --debug <sensitive data removed>
  Working directory: C:\Users\yan.diniz\Developer\Performa\BlackMirror\black-mirror\csharp-app
  Timeout (ms):-1
  Process id: 3956
Process returned exit code 0
The SonarQube Scanner has finished
14:52:14.175  Creating a summary markdown file...
14:52:14.177  Analysis results: http://localhost:9000/dashboard/index/application-key
14:52:14.177  Post-processing succeeded.

All files are done, and processed, but when a open the given link: http://localhost:9000/dashboard/index/application-key

this say that I need to analysis and give me no results. :frowning:

Can anyone help me what step I’m passing away?

Thanks for help!


(Valeri Hristov) #2

It seems that the Java part of the scanner is not executed. Can you check that the files in C:\Users\yan.diniz\Downloads\sonar-scanner-msbuild-4.5.0.1761-net46\sonar-scanner-3.2.0.1227 and its subfolders are present and not blocked by antivirus software or something like that?

You should normally have the following files:

\sonar-scanner-3.2.0.1227\bin\sonar-scanner
\sonar-scanner-3.2.0.1227\bin\sonar-scanner.bat
\sonar-scanner-3.2.0.1227\bin\sonar-scanner-debug
\sonar-scanner-3.2.0.1227\bin\sonar-scanner-debug.bat
\sonar-scanner-3.2.0.1227\conf\sonar-scanner.properties
\sonar-scanner-3.2.0.1227\lib\sonar-scanner-cli-3.2.0.1227.jar

(Yan Tapajós) #3

Hello Valeri, thanks a lot for you reply! :smiley:

Probably was internal security of my company that block sonar-scanner run.
By the way, I set sonar-scanner into my Path environment and run manually and the execution was success and everything went to sonar dashboard! \o/

Best regards