SonarQube Scanner for MSBuild 4.0.2 failed in end phase

230 views
Skip to first unread message

linglo...@gmail.com

unread,
Jan 16, 2018, 1:28:00 PM1/16/18
to SonarQube
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:18.988  Downloading from http://localhost:9000/api/server/version...
19:10:19.048  Fetching properties for project 'omnisharp-server' from http://localhost:9000/api/settings/values?component=omnisharp-server...
19:10:19.056  No settings for project omnisharp-server. Getting global settings: http://localhost:9000/api/settings/values
19:10:19.057  Downloading from http://localhost:9000/api/settings/values...
19:10:19.079  Downloading from http://localhost:9000/api/languages/list...
19:10:19.083  Fetching quality profile for project 'omnisharp-server' from http://localhost:9000/api/qualityprofiles/search?projectKey=omnisharp-server...
19:10:19.087  Fetching quality profile for project 'omnisharp-server' from http://localhost:9000/api/qualityprofiles/search?defaults=true...
19:10:19.311  Fetching rules not active in quality profile 'AV439mEmmsuR24Am6coZ' for language 'cs' from http://localhost:9000/api/rules/search?f=internalKey&ps=500&activation=false&qprofile=AV439mEmmsuR24Am6coZ&p=1&languages=cs...
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

sanjib...@gmail.com

unread,
Apr 23, 2018, 11:35:02 PM4/23/18
to SonarQube
Getting similar error. How did you resolve it?

Amaury Leve

unread,
May 25, 2018, 3:27:47 AM5/25/18
to sanjib...@gmail.com, SonarQube
Hi @sanjibankundu  ,

If you are still experiencing some issue could you open a separate thread and provide your logs?

Cheers,
Amaury

--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/133ec7e6-f36c-41bc-96ee-ada753fe6825%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

Amaury Levé | SonarSource

Software Developer - .Net Team

http://sonarsource.com


Are you using SonarLint in your IDE? 
Reply all
Reply to author
Forward
0 new messages