Hi, everyone
I am testing SonarQube Scanner for a C# project on Linux, both the begin and build phase succeed. but it keeps failing at the "end" phase, could anyone help me out or any tips?
Environment:
OS: Ubuntu 16.04
Mono: Mono JIT compiler version 5.4.1.6
MSBuild: 15.4.0.0
Log:
===========================================================================================================
mono ~/workspace/test-projects/sonarqube-msbuild/SonarQube.Scanner.MSBuild.exe begin /k:omnisharp-server /d:sonar.verbose=true
===========================================================================================================
SonarQube Scanner for MSBuild 4.0.2
Default properties file was found at /home/linglong/workspace/test-projects/sonarqube-msbuild/SonarQube.Analysis.xml
Loading analysis properties from /home/linglong/workspace/test-projects/sonarqube-msbuild/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...
Removing the existing directory: /home/linglong/workspace/test-projects/omnisharp-server/.sonarqube
Creating directory: /home/linglong/workspace/test-projects/omnisharp-server/.sonarqube
19:10:18.98 19:10:18.974 Loading analysis properties from /home/linglong/workspace/test-projects/sonarqube-msbuild/SonarQube.Analysis.xml
19:10:18.98 19:10:18.98 sonar.verbose=true was specified - setting the log verbosity to 'Debug'
19:10:18.981 Updating build integration targets...
19:10:18.982 Installed SonarQube.Integration.ImportBefore.targets to /home/linglong/.local/share/Microsoft/MSBuild/15.0/Microsoft.Common.targets/ImportBefore
19:10:18.982 Installed SonarQube.Integration.ImportBefore.targets to /home/linglong/.local/share/Microsoft/MSBuild/14.0/Microsoft.Common.targets/ImportBefore
19:10:18.982 Installed SonarQube.Integration.ImportBefore.targets to /home/linglong/Microsoft/MSBuild/15.0/Microsoft.Common.targets/ImportBefore
19:10:18.982 Installed SonarQube.Integration.targets to /home/linglong/workspace/test-projects/omnisharp-server/.sonarqube/bin/targets
19:10:18.983 Creating config and output folders...
19:10:18.983 Creating directory: /home/linglong/workspace/test-projects/omnisharp-server/.sonarqube/conf
19:10:18.983 Creating directory: /home/linglong/workspace/test-projects/omnisharp-server/.sonarqube/out
19:10:18.986 Fetching analysis configuration settings...
19:10:19.334 Local analyzer cache: /tmp/.sonarqube/resources
19:10:19.339 Writing Roslyn generated ruleset to /home/linglong/workspace/test-projects/omnisharp-server/.sonarqube/conf/SonarQubeRoslyn-cs.ruleset...
19:10:19.359 Writing Roslyn analyzer additional file to /home/linglong/workspace/test-projects/omnisharp-server/.sonarqube/conf/cs/SonarLint.xml...
19:10:19.361 Provisioning analyzer assemblies for cs...
19:10:19.361 Installing required Roslyn analyzers...
19:10:19.362 Processing plugin: csharp version 5.10.1.1411
19:10:19.389 Cache hit: using plugin files from /tmp/.sonarqube/resources/0
19:10:19.406 Pre-processing succeeded.
=========================
msbuild OmniSharp.sln /t:Rebuild
=========================
**
Build succeeded
=========================================================================
mono ~/workspace/test-projects/sonarqube-msbuild/SonarQube.Scanner.MSBuild.exe end
=========================================================================
SonarQube Scanner for MSBuild 4.0.2
Default properties file was found at /home/linglong/workspace/test-projects/sonarqube-msbuild/SonarQube.Analysis.xml
Loading analysis properties from /home/linglong/workspace/test-projects/sonarqube-msbuild/SonarQube.Analysis.xml
Post-processing started.
19:26:21.027 Loading the SonarQube analysis config from /home/linglong/workspace/test-projects/omnisharp-server/.sonarqube/conf/SonarQubeAnalysisConfig.xml
19:26:21.031 Not running under TeamBuild
19:26:21.031 Analysis base directory: /home/linglong/workspace/test-projects/omnisharp-server/.sonarqube
Build directory:
Bin directory: /home/linglong/workspace/test-projects/omnisharp-server/.sonarqube/bin
Config directory: /home/linglong/workspace/test-projects/omnisharp-server/.sonarqube/conf
Output directory: /home/linglong/workspace/test-projects/omnisharp-server/.sonarqube/out
Config file: /home/linglong/workspace/test-projects/omnisharp-server/.sonarqube/conf/SonarQubeAnalysisConfig.xml
Generating SonarQube project properties file to /home/linglong/workspace/test-projects/omnisharp-server/.sonarqube/out/sonar-project.properties
The SonarQube MSBuild integration failed: SonarQube was unable to collect the required information about your projects.
Possible causes:
1. The project has not been built - the project must be built in between the begin and end steps
2. An unsupported version of MSBuild has been used to build the project. Currently MSBuild 14.0 upwards are supported
3. The begin, build or end steps have not all been launched from the same folder
Writing processing summary to /home/linglong/workspace/test-projects/omnisharp-server/.sonarqube/out/ProjectInfo.log
Generation of the sonar-properties file failed. Unable to complete SonarQube analysis.
19:26:21.043 Creating a summary markdown file...
19:26:21.043 Post-processing failed. Exit code: 1
Thanks in advance!
Best regards